| | |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">所属分库</Property> |
| | | <Property name="label">所在库区</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#getAllData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | |
| | | var user = encodeURIComponent(select.get("userName"));
 |
| | | var plateNum = encodeURIComponent(select.get("plateNum"));
 |
| | | 
 |
| | | view.get("#iFrameImg").set("path", "./basic/inout/inout-img?id=" + select.get("id")+"&plateNum="+plateNum+"&user="+user);
 |
| | | view.get("#iFrameImg").set("path", "/basic/inout/inout-img?id=" + select.get("id")+"&plateNum="+plateNum+"&user="+user);
 |
| | | view.get("#dialogImg").show();
 |
| | | }else{
 |
| | | $notify("请选择数据……");
 |
| | |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="width">120</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <Property name="caption">导入EXCEL</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | <Property name="action">uploadExcel</Property> |
| | | <Property name="width">120</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dataGridMain" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridMain").set("selection",arg.data);</ClientEvent> |
| | |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deptId"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">250</Property> |
| | | </DataColumn> |
| | | <DataColumn name="plateNum"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">plateNum</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">130</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | |
| | | <Dialog id="dialogMain" layout="regionPadding:8"> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">单据信息</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="width">70%</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="height">90%</Property> |
| | | <Buttons> |
| | | <Button id="btnOK"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | |
| | | <AutoFormElement> |
| | | <Property name="name">plateNum</Property> |
| | | <Property name="property">plateNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">deptId</Property> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Property name="trigger">ddNotice</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <AutoFormElement> |
| | | <Property name="name">noticeId</Property> |
| | | <Property name="property">noticeId</Property> |
| | | <Editor/> |
| | |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogImg"> |
| | | <Property name="width">1000</Property> |
| | | <Property name="width">55%</Property> |
| | | <Property name="height">95%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">流程追溯展示</Property> |
| | |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogAbnormal" layout="regionPadding:5"> |
| | | <Property name="width">450</Property> |
| | | <Property name="width">30%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">异常操作原因</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="height">45%</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">todoError();</ClientEvent> |
| | |
| | | </Container> |
| | | </CustomDropDown> |
| | | <YearDropDown id="yearDropDown"/> |
| | | <UploadAction id="uploadExcel"> |
| | | <ClientEvent name="onFileUploaded">var fileName = arg.returnValue;
 |
| | | if(fileName){
 |
| | | $notify("附件上传成功,开始执行解析……");
 |
| | | view.get("#ajaxAnalysisExcel").set("parameter",fileName).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | $alert("导入并解析成功!");
 |
| | | query();
 |
| | | }
 |
| | | });
 |
| | | }</ClientEvent> |
| | | <Property name="fileResolver">fileUploadManage#uploadExcel</Property> |
| | | <Property name="maxFileSize">10MB</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | <AjaxAction id="ajaxAnalysisExcel"> |
| | | <Property name="service">inoutDataPR#analysisExcel</Property> |
| | | <Property name="executingMessage">正在执行解析……</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |