| | |
| | | <Property name="dataType">String</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtDepot" parent="global:dtDepot"> |
| | | <ClientEvent name="onDataChange">var prop = arg.property;
 |
| | | var entity = arg.entity;
 |
| | | 
 |
| | | /**
 |
| | | * "01", //空仓
 |
| | | "02",//满仓
 |
| | | "03",//入库
 |
| | | "04",//出库
 |
| | | */
 |
| | | if("depotStatus" == prop){//表示状态修改
 |
| | | entity.set("editTag",entity.get("editTag")+"-depotStatus");
 |
| | | 
 |
| | | if(arg.newValue == "01" || arg.newValue == "02" || arg.newValue == "03" || arg.newValue == "04"){
 |
| | | $alert("仓库状态=满仓、空仓、出库中、入库中时需要通过 库存管理 功能进行修改!!");
 |
| | | view.get("#btnOK").set("disabled",true);
 |
| | | }else{
 |
| | | view.get("#btnOK").set("disabled",false);
 |
| | | }
 |
| | | }</ClientEvent> |
| | | <PropertyDef name="editTag"> |
| | | <Property name="label">修改标记</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtDepot" parent="global:dtDepot"/> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <ClientEvent name="onReady">var deptId = window.parent.DEPT_ID;//页面选择的分库编码
 |
| | |
| | | <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="depotType"> |
| | | <Property name="property">depotType</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <Dialog id="depotdialog"> |
| | | <Property name="caption">仓库基本信息</Property> |
| | | <Property name="caption">货位信息</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | |
| | | </Buttons> |
| | | <Children> |
| | | <FieldSet layout="padding:15"> |
| | | <Property name="caption">仓库基本信息</Property> |
| | | <Property name="caption">基本信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">storageReal</Property> |
| | | <Property name="property">storageReal</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="name">storeType</Property> |
| | | <Property name="property">storeType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotStatus</Property> |
| | | <Property name="property">depotStatus</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Property name="name">granaryId</Property> |
| | | <Property name="property">granaryId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">storeType</Property> |
| | | <Property name="property">storeType</Property> |
| | | <Property name="name">depotStatus</Property> |
| | | <Property name="property">depotStatus</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:3"> |
| | |
| | | <Property name="height">10</Property> |
| | | </Control> |
| | | <FieldSet layout="padding:15"> |
| | | <Property name="caption">粮油基本信息</Property> |
| | | <Property name="caption">储粮信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">storageReal</Property> |
| | | <Property name="property">storageReal</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodType</Property> |
| | | <Property name="property">foodType</Property> |
| | |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">orientation</Property> |
| | | <Property name="property">orientation</Property> |
| | | <Property name="trigger">listOri</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <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> |