| | |
| | | <Property></Property> |
| | | <Property name="label">运算符号</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="operaSymbolValue"> |
| | | <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="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("inoutDataPR#triggerResult").getResult()}</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | |
| | | view.get("#btnPrintWeigh").set("disabled",false);
 |
| | | view.get("#btnPrintCheck").set("disabled",false);
 |
| | | $alert("保存成功,可以进行打印和重新提新表单!");
 |
| | | flush();
 |
| | | 
 |
| | | }
 |
| | | });
 |
| | | }</ClientEvent> |
| | |
| | | <Property name="label">质检时间</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sampleUser</Property> |
| | | <Property name="property">sampleUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sampleTime</Property> |
| | | <Property name="property">sampleTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sampleType</Property> |
| | | <Property name="property">sampleType</Property> |
| | | <Property name="editorType">RadioGroup</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <DataGrid id="dataGridCheckItem" layoutConstraint="padding:10"> |
| | | <ClientEvent name="onCellValueEdit">var data = arg.entity._data;
 |
| | | //根据填写化验数据,给出提醒是否合格
 |
| | | if(data){
 |
| | | console.log(data,"inoutHand");
 |
| | | //填写的数据值
 |
| | | var newValue = data.value;
 |
| | | //标准值
 |
| | | var limit = data.upperLimit;
 |
| | | //运算符
 |
| | | var symbol = data.operaSymbol;
 |
| | | if (symbol && limit) {
 |
| | | if (">=" == symbol) {
 |
| | | if (newValue < limit) {
 |
| | | data.result = "0";
 |
| | | } else {
 |
| | | data.result = "1";
 |
| | | }
 |
| | | }
 |
| | | if ("<=" == symbol) {
 |
| | | if (newValue > limit) {
 |
| | | data.result = "0";
 |
| | | } else {
 |
| | | data.result = "1";
 |
| | | }
 |
| | | }
 |
| | | if ("==" == symbol) {
 |
| | | if (newValue != limit) {
 |
| | | data.result = "0";
 |
| | | } else {
 |
| | | data.result = "1";
 |
| | | }
 |
| | | }
 |
| | | }
 |
| | | console.log(data.result,"result")
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">#.checkItems</Property> |
| | | <Property name="highlightCurrentRow">false</Property> |
| | |
| | | <Property name="property">unit</Property> |
| | | <Property name="width">80</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="standardValue"> |
| | | <Property name="property">standardValue</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <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> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxPrintCheckBill"> |
| | | <Property name="async">false</Property> |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="service">inoutDataPR#printShipBill</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddDicArea"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="minWidth">500</Property> |