| | |
| | | }
 |
| | | if(arg.property =="foodVariety"){
 |
| | | checkByFood(arg.newValue);
 |
| | | } |
| | | </ClientEvent> |
| | | } </ClientEvent> |
| | | <Property name="creationType">com.ld.igds.models.MQuality</Property> |
| | | <PropertyDef name="id"> |
| | | <Property name="label">ID</Property> |
| | |
| | | <PropertyDef name="checkUser"> |
| | | <Property name="label">扦样人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkNum"> |
| | | <PropertyDef name="ypsl"> |
| | | <Property name="label">样品数量</Property> |
| | | <Property name="displayFormat">0.0%</Property> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="displayFormat">0.## KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkTime"> |
| | | <Property name="label">扦样时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkRepresent"> |
| | | <Property name="label">样品代表</Property> |
| | | <PropertyDef name="dbsl"> |
| | | <Property name="label">样品代表数量</Property> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="displayFormat">0.## KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkLevel"> |
| | | <PropertyDef name="ypdj"> |
| | | <Property name="label">样品等级</Property> |
| | | <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> |
| | | </PropertyDef> |
| | | <PropertyDef name="normalYear"> |
| | | <Property name="label">正常存储年限</Property> |
| | |
| | | </PropertyDef> |
| | | <PropertyDef name="remarks"> |
| | | <Property name="label">化验结果</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="operaSymbolValue"> |
| | | <Property/> |
| | | </PropertyDef> |
| | | <PropertyDef name="operaSymbol"> |
| | | <Property/> |
| | | <Property name="label">运算符号</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ruleNum"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">扣重系数</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ruleAdd"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">增重%</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ruleAddEnd"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">增重上限%</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ruleReduce"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">扣重值%</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="rulePrice"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">扣费系数</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ruleReducePrice"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">扣费</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="addNum"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">增重</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deNum"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">扣重</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="addPrice"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">增价</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dePrice"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">扣价</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="result"> |
| | | <Property/> |
| | | <Property name="label">检验结果</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("inoutDataPR#triggerResult").getResult()}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dataTypeUser"> |
| | |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //根据粮食品种查询化验项并回显
 |
| | | checkByFood = function(foodVariety){
 |
| | | view.get("#ajaxGetCheck").set("parameter",{foodVariety:foodVariety,deptId:deptId}).execute(function(result){
 |
| | |
| | | data.set("checkItems",result);
 |
| | | }
 |
| | | }); 
 |
| | | }; |
| | | </ClientEvent> |
| | | }; </ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="loadMode">lazy</Property> |
| | |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data){
 |
| | | view.get("#dialogMain").show();
 |
| | | } |
| | | </ClientEvent> |
| | | } </ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowNumColumn/> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkNum</Property> |
| | | <Property name="property">checkNum</Property> |
| | | <Property name="name">ypsl</Property> |
| | | <Property name="property">ypsl</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkRepresent</Property> |
| | | <Property name="property">checkRepresent</Property> |
| | | <Property name="name">dbsl</Property> |
| | | <Property name="property">dbsl</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkLevel</Property> |
| | | <Property name="property">checkLevel</Property> |
| | | <Property name="name">ypdj</Property> |
| | | <Property name="property">ypdj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Buttons/> |
| | | <Children> |
| | | <DataGrid id="dataGridCheckItem"> |
| | | <ClientEvent name="onCellValueEdit">var data = arg.entity
 |
| | | if (data) {
 |
| | | //填写的数据值;
 |
| | | var newValue = data.get("value");
 |
| | | //标准值;
 |
| | | var limit = data.get("upperLimit");
 |
| | | //运算符;
 |
| | | var symbol = data.get("operaSymbol");
 |
| | | if (symbol && limit && newValue) {
 |
| | | if (">=" == symbol) {
 |
| | | if (newValue < limit) {
 |
| | | data.set("result", "0");
 |
| | | }
 |
| | | else {
 |
| | | data.set("result", "1");
 |
| | | }
 |
| | | }
 |
| | | if ("<=" == symbol) {
 |
| | | if (newValue > limit) {
 |
| | | data.set("result", "0");
 |
| | | }
 |
| | | else {
 |
| | | data.set("result", "1");
 |
| | | }
 |
| | | }
 |
| | | if ("==" == symbol) {
 |
| | | if (newValue != limit) {
 |
| | | data.set("result", "0");
 |
| | | }
 |
| | | else {
 |
| | | data.set("result", "1");
 |
| | | }
 |
| | | }
 |
| | | }
 |
| | | }</ClientEvent> |
| | | <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> |
| | | <DataColumn name="standardName"> |
| | | <Property name="property">standardName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">value</Property> |
| | | <DataColumn name="value"> |
| | | <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> |
| | | <DataColumn name="unit"> |
| | | <Property name="property">unit</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="name">remarks</Property> |
| | | <DataColumn name="operaSymbolValue"> |
| | | <Property name="property">operaSymbolValue</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">标准值</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deNum"> |
| | | <Property name="property">deNum</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="addNum"> |
| | | <Property name="property">addNum</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="dePrice"> |
| | | <Property name="property">dePrice</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="addPrice"> |
| | | <Property name="property">addPrice</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="result"> |
| | | <Property name="property">result</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="remarks"> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="align">center</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |