| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <ClientEvent name="onDataChange">if(arg.property =="depotId"){
 |
| | | autoByDepot(arg.newValue);
 |
| | | }
 |
| | | if(arg.property =="foodVariety"){
 |
| | | checkByFood(arg.newValue);
 |
| | | }</ClientEvent> |
| | | <Property name="creationType">com.ld.igds.models.MQuality</Property> |
| | | <PropertyDef name="id"> |
| | | <Property name="label">ID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property name="label">库区编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="label">检测仓库</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_VARIETY_")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="label">粮食品种</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLevel"> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_LEVEL_")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="label">粮食等级</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodType"> |
| | | <Property name="label">粮食性质</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_TYPE_")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocation"> |
| | | <Property name="label">粮食产地</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">检验类别</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("qualityManagerPR#triggerType").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standard"> |
| | | <Property name="label">检验依据</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("qualityManagerPR#triggerStandard").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="user"> |
| | | <Property name="label">检验人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="time"> |
| | | <Property name="label">检验时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="result"> |
| | | <Property name="label">检验结论</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkArea"> |
| | | <Property name="label">扦样区域</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkUser"> |
| | | <Property name="label">扦样人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkNum"> |
| | | <Property name="label">样品数量</Property> |
| | | <Property name="displayFormat">0.0%</Property> |
| | | <Property name="dataType">Double</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkTime"> |
| | | <Property name="label">扦样时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkRepresent"> |
| | | <Property name="label">样品代表</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkLevel"> |
| | | <Property name="label">样品等级</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="normalYear"> |
| | | <Property name="label">正常存储年限</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">是</Property> |
| | | <Property name="code">1</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">否</Property> |
| | | <Property name="code">0</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property name="label">备注信息</Property> |
| | | </PropertyDef> |
| | | <Reference name="checkItems"> |
| | | <Property name="dataProvider">checkStandardPR#listCheckItemsByCheckId</Property> |
| | | <Property name="dataType">[dtCheckItems]</Property> |
| | | <Property name="parameter"> |
| | | <Entity> |
| | | <Property name="checkId">$${this.id}</Property> |
| | | <Property name="foodVariety">$${this.foodVariety}</Property> |
| | | <Property name="deptId">$${this.deptId}</Property> |
| | | </Entity> |
| | | </Property> |
| | | </Reference> |
| | | </DataType> |
| | | <DataType name="dtQualityParam"> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">仓库</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">检验类别</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("qualityManagerPR#triggerType").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="start"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">检测开始时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">检测截止时间</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtCheckItems"> |
| | | <Property name="creationType">com.ld.igds.check.dto.CheckItemData</Property> |
| | | <PropertyDef name="updateTime"> |
| | | <Property></Property> |
| | | <Property name="label">仓库</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkId"> |
| | | <Property name="label">检测编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardId"> |
| | | <Property name="label">检测项编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardName"> |
| | | <Property name="label">检测项名称</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="unit"> |
| | | <Property name="label">单位</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="upperLimit"> |
| | | <Property name="label">标准上限</Property> |
| | | <Property name="dataType">Double</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lowerLimit"> |
| | | <Property name="label">标准下限</Property> |
| | | <Property name="dataType">Double</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="value"> |
| | | <Property name="label">检测值</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remarks"> |
| | | <Property name="label">化验结果</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dataTypeUser"> |
| | | <Property name="creationType">com.bstek.bdf2.core.model.DefaultUser</Property> |
| | | <PropertyDef name="password"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">密码</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="length"> |
| | | <Property name="minLength">6</Property> |
| | | </Validator> |
| | | <Validator type="custom"> |
| | | <ClientEvent name="onValidate">if (arg.entity.get("confirmPassword")){ |
| | | arg.entity.validate("confirmPassword"); |
| | | }</ClientEvent> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="confirmPassword"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">确认密码</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="custom"> |
| | | <ClientEvent name="onValidate">var confirm = arg.data;
 |
| | | var password = arg.entity.get("password");
 |
| | | if (confirm ==password) {
 |
| | | arg.result = { state:"ok"}
 |
| | | } else {
 |
| | | arg.result = { state:"error", text: "两次密码不一致"}; 
 |
| | | }</ClientEvent> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="salt"> |
| | | <Property name="dataType">String</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="male"> |
| | | <Property name="dataType">boolean</Property> |
| | | <Property name="label">性别</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="key">true</Property> |
| | | <Property name="value">男</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">false</Property> |
| | | <Property name="value">女</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | <Property name="defaultValue">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="enabled"> |
| | | <Property name="dataType">boolean</Property> |
| | | <Property name="label">是否可用</Property> |
| | | <Property name="defaultValue">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="birthday"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">出生日期</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="address"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">地址</Property> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">120</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="username"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">用户名</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="ajax"> |
| | | <Property name="service">bdf2.userMaintain#userIsExists</Property> |
| | | </Validator> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">60</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="cname"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">中文名</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="length"> |
| | | <Property name="minLength">2</Property> |
| | | <Property name="maxLength">60</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="ename"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">英文名</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">60</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="administrator"> |
| | | <Property name="dataType">boolean</Property> |
| | | <Property name="label">是否为管理员</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="mobile"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">手机</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">11</Property> |
| | | <Property name="minLength">11</Property> |
| | | <Property name="resultMessage">请输入11位手机号码</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="email"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">邮箱</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="regExp"> |
| | | <Property name="resultMessage">邮箱格式输入错误</Property> |
| | | <Property name="whiteRegExp">^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$</Property> |
| | | <Property name="validateMode">whiteBlack</Property> |
| | | </Validator> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">120</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property name="dataType">String</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <ClientEvent name="onReady">var deptId = window.parent.DEPT_ID;//父页面中的分库编码
 |
| | | 
 |
| | | //根据仓库自动回填粮食品种,登记,产地新
 |
| | | autoByDepot = function(depotId){
 |
| | | view.get("#ajaxGetDepot").set("parameter",depotId).execute(function(result){
 |
| | | if(result){
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("foodLocation",result.foodLocation);
 |
| | | data.set("foodLevel",result.foodLevel);
 |
| | | data.set("foodVariety",result.foodVariety);
 |
| | | data.set("foodType",result.foodType);
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //根据粮食品种查询化验项并回显
 |
| | | checkByFood = function(foodVariety){
 |
| | | view.get("#ajaxGetCheck").set("parameter",{foodVariety:foodVariety,deptId:deptId}).execute(function(result){
 |
| | | if(result){
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("checkItems",result);
 |
| | | }
 |
| | | }); 
 |
| | | };</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="loadMode">lazy</Property> |
| | | <Property name="dataProvider">qualityManagerPR#listQuality</Property> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="pageSize">15</Property> |
| | | </DataSet> |
| | | <DataSet id="dsParam"> |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | | <Property name="dataType">dtQualityParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dataSetUser"> |
| | | <Property name="dataType">[dataTypeUser]</Property> |
| | | <Property name="pageSize">100</Property> |
| | | <Property name="dataProvider">bdf2.userMaintain#loadUsers</Property> |
| | | </DataSet> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | <Property name="height">55</Property> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="text">菜单栏:</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsMain").insert();
 |
| | | view.get("#dialogMain").show();</ClientEvent> |
| | | <Property name="caption">新增</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | | view.get("#dialogMain").show();
 |
| | | }</ClientEvent> |
| | | <Property name="caption">修改</Property> |
| | | <Property name="exClassName">btn-warm</Property> |
| | | <Property name="iconClass">fa fa-pencil</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(!data){
 |
| | | return;
 |
| | | }
 |
| | | view.get("#ajaxDel").set("parameter",data).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | data.remove();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 |
| | | </ClientEvent> |
| | | <Property name="caption">刷新</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </Button> |
| | | </Container> |
| | | <Container layout="regionPadding:10" layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,*,*</Property> |
| | | <Property name="dataSet">dsParam</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">type</Property> |
| | | <Property name="property">type</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">end</Property> |
| | | <Property name="property">end</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="hbox regionPadding:15"> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var param = view.get("#dsParam.data");
 |
| | | view.get("#dsMain").set("parameter",param.toJSON()).flushAsync();</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsParam").setData({});</ClientEvent> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="caption">重置</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | <DataGrid layoutConstraint="center padding:5px"> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | | view.get("#dialogMain").show();
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">depotId</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">type</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">type</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">foodVariety</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">foodType</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">foodType</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">foodLevel</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">foodLevel</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">standard</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">standard</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">user</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">user</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">time</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">time</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">result</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">result</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">normalYear</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">normalYear</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Container layout="regionPadding:10" layoutConstraint="bottom"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="visible">false</Property> |
| | | <Property name="caption">质量巡检信息</Property> |
| | | <Property name="width">80%</Property> |
| | | <Property name="height">720</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data.validate() != 'ok'){
 |
| | | $notify("数据校验失败!!");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#uaAction").set("parameter",data).execute(function(){
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">保存</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">基础信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">type</Property> |
| | | <Property name="property">type</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkArea</Property> |
| | | <Property name="property">checkArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">standard</Property> |
| | | <Property name="property">standard</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkUser</Property> |
| | | <Property name="property">checkUser</Property> |
| | | <Property name="trigger">triggerUserList</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodType</Property> |
| | | <Property name="property">foodType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">user</Property> |
| | | <Property name="property">user</Property> |
| | | <Property name="trigger">triggerUserList1</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkNum</Property> |
| | | <Property name="property">checkNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">time</Property> |
| | | <Property name="property">time</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkTime</Property> |
| | | <Property name="property">checkTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkRepresent</Property> |
| | | <Property name="property">checkRepresent</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkLevel</Property> |
| | | <Property name="property">checkLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">normalYear</Property> |
| | | <Property name="property">normalYear</Property> |
| | | <Editor> |
| | | <RadioGroup> |
| | | <RadioButton> |
| | | <Property name="text">否</Property> |
| | | <Property name="value">0</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">是</Property> |
| | | <Property name="value">1</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">result</Property> |
| | | <Property name="property">result</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <Control> |
| | | <Property name="height">10</Property> |
| | | </Control> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">检测项信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <DataGrid id="dataGridCheckItem"> |
| | | <Property name="dataPath">#.checkItems</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="highlightCurrentRow">false</Property> |
| | | <Property name="visible">true</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn> |
| | | <Property name="name">standardName</Property> |
| | | <Property name="property">standardName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">value</Property> |
| | | <Property name="property">value</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">upperLimit</Property> |
| | | <Property name="property">upperLimit</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">lowerLimit</Property> |
| | | <Property name="property">lowerLimit</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">unit</Property> |
| | | <Property name="property">unit</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |
| | | </FieldSet> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaAction"> |
| | | <Property name="dataResolver">qualityManagerPR#saveQuality</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="confirmMessage">确定要删除吗?</Property> |
| | | <Property name="service">qualityManagerPR#delQuality</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetDepot"> |
| | | <Property name="service">depotPR#getDepot</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetCheck"> |
| | | <Property name="service">checkStandardPR#listCheckItemsByFoodVariety</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddFoodOrigin"> |
| | | <Property name="minHeight">480</Property> |
| | | <Property name="assignmentMap">foodLocation=name</Property> |
| | | <Property name="minWidth">360</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsFoodOrigin"> |
| | | <Property name="dataProvider">dicTriggerPR#pagFoodLocationData</Property> |
| | | <Property name="dataType">[dtFoodOrigin]</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="pageSize">30</Property> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <ClientEvent name="onDataChange">if(arg.property =="depotId"){
 |
| | | autoByDepot(arg.newValue);
 |
| | | }
 |
| | | if(arg.property =="foodVariety"){
 |
| | | checkByFood(arg.newValue);
 |
| | | } |
| | | </ClientEvent> |
| | | <Property name="creationType">com.ld.igds.models.MQuality</Property> |
| | | <PropertyDef name="id"> |
| | | <Property name="label">ID</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property name="label">库区编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="depotId"> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()} |
| | | </Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="label">检测仓库</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_VARIETY_")} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="label">粮食品种</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLevel"> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_LEVEL_")} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="label">粮食等级</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodType"> |
| | | <Property name="label">粮食性质</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_TYPE_")} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodLocation"> |
| | | <Property name="label">粮食产地</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">检验类别</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("qualityManagerPR#triggerType").getResult()} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standard"> |
| | | <Property name="label">检验依据</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("qualityManagerPR#triggerStandard").getResult()} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="user"> |
| | | <Property name="label">检验人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="time"> |
| | | <Property name="label">检验时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="result"> |
| | | <Property name="label">检验结论</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkArea"> |
| | | <Property name="label">扦样区域</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkUser"> |
| | | <Property name="label">扦样人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkNum"> |
| | | <Property name="label">样品数量</Property> |
| | | <Property name="displayFormat">0.0%</Property> |
| | | <Property name="dataType">Double</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkTime"> |
| | | <Property name="label">扦样时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkRepresent"> |
| | | <Property name="label">样品代表</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkLevel"> |
| | | <Property name="label">样品等级</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="normalYear"> |
| | | <Property name="label">正常存储年限</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="name">是</Property> |
| | | <Property name="code">1</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="name">否</Property> |
| | | <Property name="code">0</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property name="label">备注信息</Property> |
| | | </PropertyDef> |
| | | <Reference name="checkItems"> |
| | | <Property name="dataProvider">checkStandardPR#listCheckItemsByParam</Property> |
| | | <Property name="dataType">[dtCheckItems]</Property> |
| | | <Property name="parameter"> |
| | | <Entity> |
| | | <Property name="checkId">$${this.id}</Property> |
| | | <Property name="foodVariety">$${this.foodVariety}</Property> |
| | | <Property name="deptId">$${this.deptId}</Property> |
| | | </Entity> |
| | | </Property> |
| | | </Reference> |
| | | </DataType> |
| | | <DataType name="dtQualityParam"> |
| | | <PropertyDef name="depotId"> |
| | | <Property></Property> |
| | | <Property name="label">仓库</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("depotPR#getAllCache").getResult()} |
| | | </Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">检验类别</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("qualityManagerPR#triggerType").getResult()} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="start"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">检测开始时间</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">检测截止时间</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtCheckItems"> |
| | | <Property name="creationType">com.ld.igds.check.dto.CheckItemData</Property> |
| | | <PropertyDef name="updateTime"> |
| | | <Property></Property> |
| | | <Property name="label">仓库</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkId"> |
| | | <Property name="label">检测编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardId"> |
| | | <Property name="label">检测项编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardName"> |
| | | <Property name="label">检测项名称</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="unit"> |
| | | <Property name="label">单位</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="upperLimit"> |
| | | <Property name="label">标准上限</Property> |
| | | <Property name="dataType">Double</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lowerLimit"> |
| | | <Property name="label">标准下限</Property> |
| | | <Property name="dataType">Double</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="value"> |
| | | <Property name="label">检测值</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remarks"> |
| | | <Property name="label">化验结果</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dataTypeUser"> |
| | | <Property name="creationType">com.bstek.bdf2.core.model.DefaultUser</Property> |
| | | <PropertyDef name="password"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">密码</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="length"> |
| | | <Property name="minLength">6</Property> |
| | | </Validator> |
| | | <Validator type="custom"> |
| | | <ClientEvent name="onValidate">if (arg.entity.get("confirmPassword")){ |
| | | arg.entity.validate("confirmPassword"); |
| | | } |
| | | </ClientEvent> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="confirmPassword"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">确认密码</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="custom"> |
| | | <ClientEvent name="onValidate">var confirm = arg.data;
 |
| | | var password = arg.entity.get("password");
 |
| | | if (confirm ==password) {
 |
| | | arg.result = { state:"ok"}
 |
| | | } else {
 |
| | | arg.result = { state:"error", text: "两次密码不一致"}; 
 |
| | | } |
| | | </ClientEvent> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="salt"> |
| | | <Property name="dataType">String</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="male"> |
| | | <Property name="dataType">boolean</Property> |
| | | <Property name="label">性别</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="key">true</Property> |
| | | <Property name="value">男</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">false</Property> |
| | | <Property name="value">女</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | <Property name="defaultValue">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="enabled"> |
| | | <Property name="dataType">boolean</Property> |
| | | <Property name="label">是否可用</Property> |
| | | <Property name="defaultValue">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="birthday"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">出生日期</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="address"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">地址</Property> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">120</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="username"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">用户名</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="ajax"> |
| | | <Property name="service">bdf2.userMaintain#userIsExists</Property> |
| | | </Validator> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">60</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="cname"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">中文名</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="length"> |
| | | <Property name="minLength">2</Property> |
| | | <Property name="maxLength">60</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="ename"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">英文名</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">60</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="administrator"> |
| | | <Property name="dataType">boolean</Property> |
| | | <Property name="label">是否为管理员</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="mobile"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">手机</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">11</Property> |
| | | <Property name="minLength">11</Property> |
| | | <Property name="resultMessage">请输入11位手机号码</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="email"> |
| | | <Property name="dataType">String</Property> |
| | | <Property name="label">邮箱</Property> |
| | | <Property name="required">true</Property> |
| | | <Validator type="regExp"> |
| | | <Property name="resultMessage">邮箱格式输入错误</Property> |
| | | <Property name="whiteRegExp">^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$ |
| | | </Property> |
| | | <Property name="validateMode">whiteBlack</Property> |
| | | </Validator> |
| | | <Validator type="length"> |
| | | <Property name="maxLength">120</Property> |
| | | </Validator> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property name="dataType">String</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <ClientEvent name="onReady">var deptId = window.parent.DEPT_ID;//父页面中的分库编码
 |
| | | 
 |
| | | //根据仓库自动回填粮食品种,登记,产地新
 |
| | | autoByDepot = function(depotId){
 |
| | | view.get("#ajaxGetDepot").set("parameter",depotId).execute(function(result){
 |
| | | if(result){
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("foodLocation",result.foodLocation);
 |
| | | data.set("foodLevel",result.foodLevel);
 |
| | | data.set("foodVariety",result.foodVariety);
 |
| | | data.set("foodType",result.foodType);
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //根据粮食品种查询化验项并回显
 |
| | | checkByFood = function(foodVariety){
 |
| | | view.get("#ajaxGetCheck").set("parameter",{foodVariety:foodVariety,deptId:deptId}).execute(function(result){
 |
| | | if(result){
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("checkItems",result);
 |
| | | }
 |
| | | }); 
 |
| | | }; |
| | | </ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="loadMode">lazy</Property> |
| | | <Property name="dataProvider">qualityManagerPR#listQuality</Property> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="pageSize">15</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key2"> |
| | | <Property name="blankText"> -- 编码或者名称 --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key2.value");
 |
| | | view.get("#dsFoodOrigin").set("parameter",{key:key}).flushAsync();</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="caption">确定</Property> |
| | | </Button> |
| | | <DataSet id="dsParam"> |
| | | <ClientEvent name="onReady">self.insert({});</ClientEvent> |
| | | <Property name="dataType">dtQualityParam</Property> |
| | | </DataSet> |
| | | <DataSet id="dataSetUser"> |
| | | <Property name="dataType">[dataTypeUser]</Property> |
| | | <Property name="pageSize">100</Property> |
| | | <Property name="dataProvider">bdf2.userMaintain#loadUsers</Property> |
| | | </DataSet> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="contentOverflow">hidden</Property> |
| | | <Property name="height">55</Property> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="text">菜单栏:</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsMain").insert();
 |
| | | view.get("#dialogMain").show(); |
| | | </ClientEvent> |
| | | <Property name="caption">新增</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | | view.get("#dialogMain").show();
 |
| | | } |
| | | </ClientEvent> |
| | | <Property name="caption">修改</Property> |
| | | <Property name="exClassName">btn-warm</Property> |
| | | <Property name="iconClass">fa fa-pencil</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(!data){
 |
| | | return;
 |
| | | }
 |
| | | view.get("#ajaxDel").set("parameter",data).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | data.remove();
 |
| | | }
 |
| | | }); |
| | | </ClientEvent> |
| | | <Property name="caption">删除</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 |
| | | </ClientEvent> |
| | | <Property name="caption">刷新</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">name</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="simple"> |
| | | <Property name="property">simple</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataPilot layoutConstraint="bottom"> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <DataSetDropDown id="triggerUserList"> |
| | | <Property name="dataSet">dataSetUser</Property> |
| | | <Property name="property">cname</Property> |
| | | <Property name="assignmentMap">checkUser=cname</Property> |
| | | </DataSetDropDown> |
| | | <DataSetDropDown id="triggerUserList1"> |
| | | <Property name="dataSet">dataSetUser</Property> |
| | | <Property name="property">cname</Property> |
| | | <Property name="assignmentMap">user=cname</Property> |
| | | </DataSetDropDown> |
| | | </View> |
| | | <Container layout="regionPadding:10" layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,*,*</Property> |
| | | <Property name="dataSet">dsParam</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">type</Property> |
| | | <Property name="property">type</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">end</Property> |
| | | <Property name="property">end</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="hbox regionPadding:15"> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var param = view.get("#dsParam.data");
 |
| | | view.get("#dsMain").set("parameter",param.toJSON()).flushAsync(); |
| | | </ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsParam").setData({});</ClientEvent> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="caption">重置</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | <DataGrid layoutConstraint="center padding:5px"> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | | view.get("#dialogMain").show();
 |
| | | } |
| | | </ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">depotId</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">type</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">type</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">foodVariety</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">foodType</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">foodType</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">foodLevel</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">foodLevel</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">standard</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">standard</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">user</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">user</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">time</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">time</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">result</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">result</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">normalYear</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">normalYear</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Container layout="regionPadding:10" layoutConstraint="bottom"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="visible">false</Property> |
| | | <Property name="caption">质量巡检信息</Property> |
| | | <Property name="width">80%</Property> |
| | | <Property name="height">720</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data.validate() != 'ok'){
 |
| | | $notify("数据校验失败!!");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#uaAction").set("parameter",data).execute(function(){
 |
| | | self.get("parent").hide();
 |
| | | }); |
| | | </ClientEvent> |
| | | <Property name="caption">保存</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide(); |
| | | </ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">基础信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">type</Property> |
| | | <Property name="property">type</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkArea</Property> |
| | | <Property name="property">checkArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">standard</Property> |
| | | <Property name="property">standard</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkUser</Property> |
| | | <Property name="property">checkUser</Property> |
| | | <Property name="trigger">triggerUserList</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodType</Property> |
| | | <Property name="property">foodType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">user</Property> |
| | | <Property name="property">user</Property> |
| | | <Property name="trigger">triggerUserList1</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkNum</Property> |
| | | <Property name="property">checkNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">time</Property> |
| | | <Property name="property">time</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkTime</Property> |
| | | <Property name="property">checkTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkRepresent</Property> |
| | | <Property name="property">checkRepresent</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkLevel</Property> |
| | | <Property name="property">checkLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">normalYear</Property> |
| | | <Property name="property">normalYear</Property> |
| | | <Editor> |
| | | <RadioGroup> |
| | | <RadioButton> |
| | | <Property name="text">否</Property> |
| | | <Property name="value">0</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">是</Property> |
| | | <Property name="value">1</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">result</Property> |
| | | <Property name="property">result</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <Control> |
| | | <Property name="height">10</Property> |
| | | </Control> |
| | | <FieldSet layout="padding:5"> |
| | | <Property name="caption">检测项信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <DataGrid id="dataGridCheckItem"> |
| | | <Property name="dataPath">#.checkItems</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="highlightCurrentRow">false</Property> |
| | | <Property name="visible">true</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn> |
| | | <Property name="name">standardName</Property> |
| | | <Property name="property">standardName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">value</Property> |
| | | <Property name="property">value</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">upperLimit</Property> |
| | | <Property name="property">upperLimit</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">lowerLimit</Property> |
| | | <Property name="property">lowerLimit</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">unit</Property> |
| | | <Property name="property">unit</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |
| | | </FieldSet> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaAction"> |
| | | <Property name="dataResolver">qualityManagerPR#saveQuality</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="confirmMessage">确定要删除吗?</Property> |
| | | <Property name="service">qualityManagerPR#delQuality</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetDepot"> |
| | | <Property name="service">depotPR#getDepot</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetCheck"> |
| | | <Property name="service">checkStandardPR#listCheckItemsByFoodVariety</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddFoodOrigin"> |
| | | <Property name="minHeight">480</Property> |
| | | <Property name="assignmentMap">foodLocation=name</Property> |
| | | <Property name="minWidth">360</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsFoodOrigin"> |
| | | <Property name="dataProvider">dicAreaPR#pageList</Property> |
| | | <Property name="dataType">[dtArea]</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="pageSize">30</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key2"> |
| | | <Property name="blankText">-- 编码或者名称 --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key2.value");
 |
| | | view.get("#dsFoodOrigin").set("parameter",{key:key}).flushAsync(); |
| | | </ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | } |
| | | </ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="caption">确定</Property> |
| | | </Button> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsFoodOrigin.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | } |
| | | </ClientEvent> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true; |
| | | </ClientEvent> |
| | | <Property name="property">name</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="simple"> |
| | | <Property name="property">simple</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataPilot layoutConstraint="bottom"> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <DataSetDropDown id="triggerUserList"> |
| | | <Property name="dataSet">dataSetUser</Property> |
| | | <Property name="property">cname</Property> |
| | | <Property name="assignmentMap">checkUser=cname</Property> |
| | | </DataSetDropDown> |
| | | <DataSetDropDown id="triggerUserList1"> |
| | | <Property name="dataSet">dataSetUser</Property> |
| | | <Property name="property">cname</Property> |
| | | <Property name="assignmentMap">user=cname</Property> |
| | | </DataSetDropDown> |
| | | </View> |
| | | </ViewConfig> |