| | |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">
 |
| | | <ClientEvent name="onReady">// start 通过库区id来加载仓储数据
 |
| | | /**
 |
| | | * 通用工具函数:获取URL中的指定参数值
 |
| | | * @param {String} name 要获取的参数名
 |
| | | * @returns {String/null} 参数值(无则返回null)
 |
| | | */
 |
| | | function getUrlParam(name) {
 |
| | | // 解析URL的查询字符串(?后面的部分)
 |
| | | var search = window.location.search.substring(1);
 |
| | | // 分割成键值对数组
 |
| | | var params = search.split("&");
 |
| | | for (var i = 0; i < params.length; i++) {
 |
| | | var pair = params[i].split("=");
 |
| | | // 解码参数值(处理中文/特殊字符)
 |
| | | if (decodeURIComponent(pair[0]) === name) {
 |
| | | return decodeURIComponent(pair[1] || "");
 |
| | | }
 |
| | | }
 |
| | | return null;
 |
| | | }; 
 |
| | | 
 |
| | | 
 |
| | | 
 |
| | | /**
 |
| | | * 查询
 |
| | | */
 |
| | | query = function(){
 |
| | | view.get("#dataSetdepot").flushAsync();
 |
| | | }
</ClientEvent> |
| | | //通过库区id来加载仓储数据
 |
| | | var parentId = getUrlParam("parentId");
 |
| | | view.get("#dataSetdepot").set("parameter",{parentId: parentId}).flushAsync();
 |
| | | };
query();
 |
| | | 
 |
| | | </ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dataSetdepot"> |
| | | <Property name="dataProvider">depotPR#getData</Property> |
| | | <Property name="dataType">[dtDepot]</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataSet id="dataSetUser"> |
| | | <Property name="dataType">[dataTypeUser]</Property> |
| | |
| | | <Property name="action">ajaxRefreshCache</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var url = "com.fzzy.igds.sys.DepotStore.d";
 |
| | | <ClientEvent name="onClick">var url = "com.fzzy.igds.DepotStore.d";
 |
| | | var panelId = window.frameElement.getAttribute('data-id'); |
| | | window.parent.$.modal.openTab("库存管理", url, false, panelId);</ClientEvent> |
| | | <Property name="caption">库存管理</Property> |
| | | <Property name="iconClass">fa fa-book</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="visible">false</Property> |
| | | <Property name="width">100</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">160</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deptId"> |
| | | <Property name="property">deptId</Property> |
| | | <Property name="align">left</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotStatus"> |
| | | <Property name="property">depotStatus</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodVariety"> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodType"> |
| | | <Property name="property">foodType</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodLevel"> |
| | | <Property name="property">foodLevel</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="storageReal"> |
| | | <Property name="property">storageReal</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodYear"> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="foodLocation"> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="storeDate"> |
| | | <Property name="property">storeDate</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="storeKeeperName"> |
| | | <Property name="property">storeKeeperName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotType"> |
| | | <Property name="property">depotType</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="updateBy"> |
| | | <Property name="property">updateBy</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | |
| | | <Dialog id="depotdialog" layout="regionPadding:8"> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">仓库信息</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="width">80%</Property> |
| | | <Property name="height">90%</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOK"> |
| | |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storageMax</Property> |
| | | <Property name="property">storageMax</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storeType</Property> |
| | | <Property name="property">storeType</Property> |
| | | <Property name="name">storageMax</Property> |
| | | <Property name="property">storageMax</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">createBy</Property> |
| | | <Property name="property">createBy</Property> |
| | | <Property name="name">storeType</Property> |
| | | <Property name="property">storeType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storeKeeperName</Property> |
| | | <Property name="property">storeKeeperName</Property> |
| | | <Property name="trigger">triggerUserList</Property> |
| | |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">orderNum</Property> |
| | | <Property name="property">orderNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:4"> |
| | | <Property name="name">pledgeBank</Property> |
| | | <Property name="property">pledgeBank</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">foodType</Property> |
| | | <Property name="property">foodType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | |
| | | <Property name="property">storeDate</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label> |
| | | <Property name="text"></Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | <Label layoutConstraint="colSpan:3"> |
| | | <Property name="text">说明:1、实际储量调整请使用“库存管理”功能;</Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*,*,*,*</Property> |
| | | <Property name="cols">*,*,*,*,*,*,*,*</Property> |
| | | <Property name="labelWidth">80</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">perWet</Property> |
| | |
| | | <Property name="property">checkDate</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label> |
| | | <Property name="text"></Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | <Label layoutConstraint="colSpan:3"> |
| | | <Property name="text">说明:储备粮质检信息会根据质量管理 自动同步更新</Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">50px</Property> |
| | | </Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |