关于驰骋表单设计器导入导出问题解决方案

<h4><a name="_Toc386361760"></a><a name="_Toc369038174">1.1: 导入导出与数据填充</a></h4> <p>在明细表中,导入导出是经常用到的,导出就是导出到excel. 导入ccform提供两种方案,分别是通过excel导入,通过配置的数据源导入。</p> <p><a href="http://static.oschina.net/uploads/img/201407/18114922_bxLK.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201407/18114923_tMag.png" width="672" height="556" /></a> </p> <h5>1.1.1: 导出明细表数据</h5> <p>当明细表的配置允许数据导出时,用户就可以按照下列操做步骤进行导出明细表的数据。</p> <p><a href="http://static.oschina.net/uploads/img/201407/18114924_F1v9.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201407/18114924_vFAm.png" width="678" height="386" /></a> </p> <p>&#160;</p> <h5>1.1.2: 导入数据模版</h5> <h6>1.1.2.1: 应用场景</h6> <p>对于大批量的从表数据采集,在web上执行就会给用户带来不方便,用户需要一个导入功能,比如事先把数据整理到excel中然后导入到表单从表中。本章节介绍如何为ccform的从表设置导入表单模板。</p> <p><a href="http://static.oschina.net/uploads/img/201407/18114924_fgHp.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201407/18114925_oY3b.png" width="549" height="388" /></a> </p> <p><b>执行效果:</b></p> <p>用户点选项按钮,导入</p> <h6>1.1.2.2: 设计制作步骤</h6> <p>第一步:根据从表制作一个excel 表(注意:费用类型为枚举或者外键类型仍然可以导入。)</p> <p>&#160;</p> <p><a href="http://static.oschina.net/uploads/img/201407/18114925_c4mR.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201407/18114925_joi9.png" width="630" height="231" /></a> </p> <p>注意目前ccform仅支持excel2003版本。</p> <p>第二步:把此模板文件按照该从表的ID存储一个从表ID+.xls 格式存储到 <br />D:\ccflow\trunk\DataUser\DtlTemplete\ 下面. <br />比如: D:\ccflow\trunk\DataUser\DtlTemplete\ND501Dtl1.xls 文件.</p> <p>第三步:打开从表属性,启用设置可以导入功能。</p> <p>&#160;</p> <h5>1.1.3: 数据选择填充</h5> <p><b>应用场景:</b></p> <p>用户所要输入的数据是需要从其他的数据源选择的,比如要建立一个灰名单库,但是灰名单需要从一个名单列表选择,可能需要选择多条。</p> <p><b>配置方法:</b></p> <p>这个应用需要如下3个sql支持:</p> <p><a href="http://static.oschina.net/uploads/img/201407/18114926_O96G.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201407/18114926_exSo.png" width="614" height="487" /></a> </p> <p>初始化SQL:当用户进入界面时,首先展现的数据源,必须有No,Name两个列。</p> <p>查询SQL: 用户点查询时的SQL, 注意@Key 是关键字,必须有No,Name两个列。</p> <p>填充数据SQL: 返回的列名一定要与明细表的列名相同,否则填充不上,@Keys 是用户选择的多个主键.</p> <p><b>前台展示效果:</b></p> <p><strong></strong></p> <p><a href="http://static.oschina.net/uploads/img/201407/18114926_e4EG.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201407/18114926_hncG.png" width="469" height="393" /></a> </p> <p>如果用户点放入,可以按照关键字查询继续选择。</p> <p>&#160;</p> <p>如果用户点放入并关闭,则就返回到</p> <p>&#160;</p> <p><a href="http://static.oschina.net/uploads/img/201407/18114927_QAmX.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://static.oschina.net/uploads/img/201407/18114927_AAuK.png" width="433" height="320" /></a> </p> <p>&#160;</p> <p>完成数据选择。</p>

转载于:https://my.oschina.net/ccflow/blog/292372

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值