(1)、定义导出按钮
{ "fieldName": "stockSaleBatchExport", "name": "批量导出", "notes": "库存销售分布明细", "dataType": "java.lang.String", "inputType": "InputText", "inputApi": "/x3-service-bills-center/bi/stocksales/report/export/batch", "showType": "HeaderEllipsisButton", "required": false, "length": 0, "hidden": false, "accessMode": "WebReadOnly", "width": "80px", "position": 100, "columnLockType": "none", "webUrl": "/bills/business/#/exports/list", "sort": false, "costPrice": false, "accPrice": false, "powerLevel": 0, "searchMode": "web" }
(2)、输出的二维sql参考
SELECT a.style_id, max( a.style_name ) AS style_name, max( CASE WHEN b.tab_id = 12 THEN b.TAB_VALUE_NAME ELSE '' END ) AS tabs_12, max( CASE WHEN b.tab_id = 19 THEN b.TAB_VALUE_NAME ELSE '' END ) AS tabs_19, max( CASE WHEN b.tab_id = 20 THEN b.TAB_VALUE_NAME ELSE '' END ) AS tabs_20, max( CASE WHEN b.tab_id = 3 THEN b.TAB_VALUE_NAME ELSE '' END ) AS tabs_3, max( CASE WHEN b.tab_id = 4 THEN b.TAB_VALUE_NAME ELSE '' END ) AS tabs_4, max( CASE WHEN b.tab_id = 5 THEN b.TAB_VALUE_NAME ELSE '' END ) AS tabs_5 FROM a_bill_style_sub a LEFT JOIN a_bill_style_tab_sub b ON a.style_id = b.style_id WHERE 1 = 1 AND a.bills_id = 'ST240802-4668-000001' GROUP BY a.style_id
输出结果参考
STYLE_ID STYLE_NAME TABS_12 TABS_19 TABS_20 TABS_3 TABS_4 TABS_5 Z153Q01400 女西裙 蕾丝 B A 正价款 八折 礼服
(3).对应表头JSON参考
[ { "columnId": "styleId", "columnAlias": "styleId", "headerCaption": "商品编号", "headerTag": "导出标签", "showWidth": "100px", "showColor": "Red", "showColorExpression": "Equal", "showColorExpressionValue": "", "showFormat": "Text", "subHeaders": [ ], "whereValueApi": "", "xtabShowTop": true }, { "columnId": "styleName", "columnAlias": "styleName", "headerCaption": "商品名称", "headerTag": "导出标签", "showWidth": "200px", "showColor": "Red", "showColorExpression": "Equal", "showColorExpressionValue": "", "showFormat": "Text", "subHeaders": [ ], "whereValueApi": "", "xtabShowTop": true }, { "columnId": "tabs_12", "columnAlias": "tabs_12", "headerCaption": "标签维度", "headerTag": "导出标签", "showWidth": "100%", "showColor": "Red", "showColorExpression": "Equal", "showColorExpressionValue": "", "showFormat": "Text", "subHeaders": [ "材质" ], "whereValueApi": "", "xtabShowTop": false }, { "columnId": "tabs_19", "columnAlias": "tabs_19", "headerCaption": "标签维度", "headerTag": "导出标签", "showWidth": "100%", "showColor": "Red", "showColorExpression": "Equal", "showColorExpressionValue": "", "showFormat": "Text", "subHeaders": [ "款式评级一" ], "whereValueApi": "", "xtabShowTop": false }, { "columnId": "tabs_20", "columnAlias": "tabs_20", "headerCaption": "标签维度", "headerTag": "导出标签", "showWidth": "100%", "showColor": "Red", "showColorExpression": "Equal", "showColorExpressionValue": "", "showFormat": "Text", "subHeaders": [ "款式评级二" ], "whereValueApi": "", "xtabShowTop": false }, { "columnId": "tabs_3", "columnAlias": "tabs_3", "headerCaption": "标签维度", "headerTag": "导出标签", "showWidth": "100%", "showColor": "Red", "showColorExpression": "Equal", "showColorExpressionValue": "", "showFormat": "Text", "subHeaders": [ "类别" ], "whereValueApi": "", "xtabShowTop": false }, { "columnId": "tabs_4", "columnAlias": "tabs_4", "headerCaption": "标签维度", "headerTag": "导出标签", "showWidth": "100%", "showColor": "Red", "showColorExpression": "Equal", "showColorExpressionValue": "", "showFormat": "Text", "subHeaders": [ "价格" ], "whereValueApi": "", "xtabShowTop": false }, { "columnId": "tabs_5", "columnAlias": "tabs_5", "headerCaption": "标签维度", "headerTag": "导出标签", "showWidth": "100%", "showColor": "Red", "showColorExpression": "Equal", "showColorExpressionValue": "", "showFormat": "Text", "subHeaders": [ "风格" ], "whereValueApi": "", "xtabShowTop": false } ]
注意事项:showFormat不能错
c#中string和StringBuilder直接看看执行速度。(2).String类型累计赋值Test  ...
【一】.钩子文件的设置和创建(1).打开hooks目录,可以看到有一个post-commit.tmpl文件,这是一个模板文件。复制一份,重命名为post-commit,将其用户组设为www,并设置为可执行。chown www:www post-commitchmod +x post-commit(2...
在安装之前我们先看看官方给出的依赖关系.首先是dll文件和mongodb软件的依赖关系然后是PHP文件和dll的依赖关系我的是phpstudy的集成环境PHP5.4.45 NTS+Apache+Mysql【一】.安装mongodb3.0软件对比依赖关系下载mongodb3.0.msi软件,完整名称:...
Application 对象用于存储和访问来自任意页面的变量,类似 Session 对象。不同之处在于所有的用户分享一个 Application 对象,而 session 对象和用户的关系是一一对应的。很多的书籍中介绍的Application对象都喜欢以统计在线人数来介绍Application 对象...
1.远程仓库的协作模式开发者把自己最新的版本推到线上仓库,同时把线上仓库的最新代码,拉到自己本地即可2.注册git帐号国外: http://www.github.com国内: http://git.oschina.net2.在码云创建项目,不要初始化readmegit push https://gi...
git pull https://git.oschina.net/392223903/learn.git master 换为您的git地址...