| | |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">
 |
| | | 
 |
| | | /**
 |
| | | * 查询
 |
| | | */
 |
| | | query = function(){
 |
| | | view.get("#dataSetdepot").flushAsync();
 |
| | | }
</ClientEvent> |
| | | //通过库区id来加载仓储数据
 |
| | | var parentId = "${request.getParameter('parentId')}";
 |
| | | view.get("#dataSetdepot").set("parameter",{parentId: parentId}).flushAsync();
 |
| | | };
query();
 |
| | | 
 |
| | | 
 |
| | | showDlg=function(){
 |
| | | var select = view.get("#dataGridDepot").get("selection");
 |
| | | if(select){
 |
| | | view.get("#depotdialog").show();;
 |
| | | }else{
 |
| | | $notify("请先选择数据……");
 |
| | | }
 |
| | | };
 |
| | | 
 |
| | | renderId = function(arg){
 |
| | | var txt = arg.data.getText("id");
 |
| | | if(!txt) return true;
 |
| | | var htm = "<a href='javascript:;' onClick='showDlg()' >"+txt+"</a>";
 |
| | | arg.dom.innerHTML = htm;
 |
| | | }
 |
| | | 
 |
| | | renderName = function(arg){
 |
| | | var txt = arg.data.getText("name");
 |
| | | if(!txt) return true;
 |
| | | var htm = "<a href='javascript:;' onClick='showDlg()' >"+txt+"</a>";
 |
| | | arg.dom.innerHTML = htm;
 |
| | | } |
| | | </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="width">100</Property> |
| | | <Property name="action">ajaxRefreshCache</Property> |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var url = "com.fzzy.igds.sys.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="width">100</Property> |
| | | </ToolBarButton> |
| | | </ToolBar> |
| | | <DataGrid id="dataGridDepot" layoutConstraint="padding:8"> |
| | | <ClientEvent name="onDataRowClick">view.get("#dataGridDepot").set("selection",arg.data);</ClientEvent> |
| | |
| | | <RowSelectorColumn/> |
| | | <RowNumColumn/> |
| | | <DataColumn name="id"> |
| | | <ClientEvent name="onRenderCell">renderId(arg);</ClientEvent> |
| | | <Property name="property">id</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <ClientEvent name="onRenderCell">renderName(arg);</ClientEvent> |
| | | <Property name="property">name</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | |
| | | <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:2"> |
| | | <Property name="name">updateBy</Property> |
| | | <Property name="property">updateBy</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:4"> |
| | |
| | | <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> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">质检信息</Property> |
| | | <Property name="caption">其他信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*,*,*,*</Property> |
| | | <Property name="labelWidth">80</Property> |
| | | <Property name="cols">*,*,*,*,*,*,*,*</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">length</Property> |
| | | <Property name="property">length</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">width</Property> |
| | | <Property name="property">width</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">height</Property> |
| | | <Property name="property">height</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">bulkWeight</Property> |
| | | <Property name="property">bulkWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">perWet</Property> |
| | | <Property name="property">perWet</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">bulkWeight</Property> |
| | | <Property name="property">bulkWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">checkDate</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> |
| | |
| | | </UpdateAction> |
| | | <AjaxAction id="deleteAjaxAction"> |
| | | <Property name="successMessage">删除成功</Property> |
| | | <Property name="service">depotPR#deletedepot</Property> |
| | | <Property name="service">depotPR#deleteDepot</Property> |
| | | <Property name="executingMessage">正在删除</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxRefreshCache"> |