| | |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <ClientEvent name="onDataChange">if(arg.property == 'type'){
 |
| | | //库区自建通知单
 |
| | | if(arg.newValue == '10'){
 |
| | | view.get("#formItemBank").set("visible",false);
 |
| | | var curData = view.get("#dsMain.data:#"); //当前选择的数据
 |
| | | curData.set("bankId",'-');
 |
| | | 
 |
| | | }
 |
| | | //质押监管通知单
 |
| | | if(arg.newValue == '20'){
 |
| | | view.get("#formItemBank").set("visible",true);
 |
| | | var curData = view.get("#dsMain.data:#"); //当前选择的数据
 |
| | | curData.set("bankId",null);
 |
| | | }
 |
| | | }
 |
| | | 
 |
| | | 
 |
| | | 
 |
| | | </ClientEvent> |
| | | <Property name="creationType">com.fzzy.igds.domain.InoutNoticeIn</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">所属分库</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#getDeptByUserType").getResult()}</Property> |
| | | <Property name="valueProperty">kqmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="name"> |
| | | <Property></Property> |
| | |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">库区通知单</Property> |
| | | <Property name="name">库区自建通知单</Property> |
| | | <Property name="code">10</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">监管通知单</Property> |
| | | <Property name="name">质押监管通知单</Property> |
| | | <Property name="code">20</Property> |
| | | </Entity> |
| | | </Collection> |
| | |
| | | <Property></Property> |
| | | <Property name="label">入库仓库</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="customerName"> |
| | | <Property></Property> |
| | |
| | | <Property></Property> |
| | | <Property name="label">收货单位</Property> |
| | | <Property name="required">false</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("deptPR#getAllData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">kqmc</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | |
| | | </PropertyDef> |
| | | <PropertyDef name="year"> |
| | | <Property></Property> |
| | | <Property name="label">年份</Property> |
| | | <Property name="label">粮食年份</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="targetNumber"> |
| | | <Property name="dataType">Double</Property> |
| | |
| | | <Property></Property> |
| | | <Property name="label">审核状态</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">监管审核</Property> |
| | | <Property name="code">10</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">银行审核</Property> |
| | | <Property name="code">20</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">已审核</Property> |
| | | <Property name="code">30</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicPR#triggerStatusType").getResult()}</Property> |
| | | <Property name="keyProperty">dictValue</Property> |
| | | <Property name="valueProperty">dictLabel</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="auditUser"> |
| | |
| | | <PropertyDef name="updateBy"> |
| | | <Property></Property> |
| | | <Property name="label">更新人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bankId"> |
| | | <Property></Property> |
| | | <Property name="label">监督银行</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("bankPR#listAll").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="visible">true</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | |
| | | select.remove();
 |
| | | });
 |
| | | }else{
 |
| | | $notify("请选择需要删除的仓库……");
 |
| | | $notify("请选择需要删除的数据……");
 |
| | | }</ClientEvent> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | |
| | | <Property name="caption">实时核算</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="tip">完成量默认统计到昨天,查看实时完成量请点击“实时核算”按钮</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton layoutConstraint="left"> |
| | | <ClientEvent name="onClick">
 |
| | | var select = view.get("#dataGridMain").get("selection");
 |
| | | if(select){
 |
| | | var bizId = select.get("id");
 |
| | | var url = "/export/download-word?bizId="+bizId + "&entityName=InoutNoticeIn";
 |
| | | window.open(url);
 |
| | | }else{
 |
| | | $notify("请选择需要导出的通知单……");
 |
| | | }</ClientEvent> |
| | | <Property name="caption">导出Word</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | </ToolBarButton> |
| | | <Fill/> |
| | | </ToolBar> |
| | | <DataGrid id="dataGridMain" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridCamera").set("selection",arg.data);</ClientEvent> |
| | | <ClientEvent name="onDataRowClick">self.set("selection",arg.data);</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | |
| | | <Property name="width">200</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="align">left</Property> |
| | | <Property name="name">deptId</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | |
| | | <DataColumn name="depotId"> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodVariety"> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">targetNumber</Property> |
| | | <Property name="name">targetNumber</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">200</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">completeStatus</Property> |
| | |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="width">160</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">updateBy</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">updateBy</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">updateTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="width">160</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | |
| | | <Dialog id="dialogMain" layout="regionPadding:8"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">入库通知单</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="width">85%</Property> |
| | | <Property name="height">90%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">view.get("#updateSave").execute(function(result){
 |
| | | <ClientEvent name="onClick">var entity = view.get("#dsMain.data:#");
 |
| | | var bankId = entity.get("bankId");
 |
| | | if(!bankId){
 |
| | | $alert("请先选择监管银行");
 |
| | | }else{
 |
| | | view.get("#updateSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }
 |
| | | $notify("数据执行完成!!");
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | });
 |
| | | }
 |
| | | 
 |
| | | 
 |
| | | </ClientEvent> |
| | | <Property name="caption">保存</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | |
| | | <AutoFormElement> |
| | | <Property name="name">type</Property> |
| | | <Property name="property">type</Property> |
| | | <Property name="editorType">RadioGroup</Property> |
| | | <Property name="trigger">autoMappingDropDown1</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement id="formItemBank"> |
| | | <Property name="name">bankId</Property> |
| | | <Property name="property">bankId</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="trigger">dsDepotDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Property name="trigger">defaultYearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <AutoFormElement id="formItemCustomerName" layoutConstraint="colSpan:2"> |
| | | <Property name="name">customerName</Property> |
| | | <Property name="property">customerName</Property> |
| | | <Editor/> |
| | |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <DataSetDropDown id="dsDepotDropDown"> |
| | | <ClientEvent name="onOpen"> 
 |
| | | var entity = view.get("#dsMain.data:#");
 |
| | | if(!entity){
 |
| | | $alert("请先选择监管银行");
 |
| | | }else{
 |
| | | var typeData = entity.get("type");
 |
| | | if(typeData=='20'){
 |
| | | var bankId = entity.get("bankId");
 |
| | | console.log(bankId);
 |
| | | if(!bankId){
 |
| | | $alert("请先选择监管银行");
 |
| | | }else{
 |
| | | view.get("#dsDepotList").set("parameter",entity.get("bankId")).flushAsync();
 |
| | | }
 |
| | | }else{
 |
| | | view.get("#dsDepotList").set("parameter",null).flushAsync();
 |
| | | }
 |
| | | }
 |
| | | </ClientEvent> |
| | | <Property name="dataSet">dsDepotList</Property> |
| | | <Property name="height">450</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | <Property name="assignmentMap">depotId=id</Property> |
| | | <Property name="width">400</Property> |
| | | <DataColumn> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">name</Property> |
| | | <Property name="property">name</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataSetDropDown> |
| | | <UpdateAction id="updateSave"> |
| | | <Property name="dataResolver">inoutNoticePR#saveIn</Property> |
| | | <UpdateItem> |