| | |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain" parent="dtInoutRecord"> |
| | | <ClientEvent name="onDataChange">if(arg.property =="depotId"){
 |
| | | autoByDepot(arg.newValue);
 |
| | | }
 |
| | | if(arg.property =="foodVariety"){
 |
| | | checkByFood(arg.newValue);
 |
| | | }</ClientEvent> |
| | | <PropertyDef name="price"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">粮食定价</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <Reference name="checkItems"> |
| | | <Property name="parameter"> |
| | | <Entity> |
| | | <Property name="checkId">$${this.checkId}</Property> |
| | | <Property name="foodVariety">$${this.foodVariety}</Property> |
| | | <Property name="deptId">$${this.deptId}</Property> |
| | | </Entity> |
| | | </Property> |
| | | <Property name="dataProvider">checkStandardPR#listCheckItemsByCheckId</Property> |
| | | <Property name="dataProvider">checkStandardPR#listCheckItemsByParam</Property> |
| | | <Property name="dataType">[dtCheckItems]</Property> |
| | | </Reference> |
| | | </DataType> |
| | |
| | | </DataType> |
| | | <DataType name="dtCheckItems"> |
| | | <Property name="creationType">com.ld.igds.check.dto.CheckItemData</Property> |
| | | <PropertyDef name="updateTime"> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkId"> |
| | | <Property></Property> |
| | | <Property name="label">检测编码</Property> |
| | |
| | | <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="standardPrice"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">标准单价(元/斤)</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="rulePrice"> |
| | | <Property name="dataType">Double</Property> |
| | |
| | | <Property></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> |
| | | </PropertyDef> |
| | | <PropertyDef name="operaSymbolValue"> |
| | | <Property/> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <ClientEvent name="onReady">var TYPE = "${request.getParameter('type')}";
 |
| | | var EDIT = "${request.getParameter('edit')}";
 |
| | | 
 |
| | | var deptId = window.parent.DEPT_ID;//父页面中的分库编码
 |
| | | 
 |
| | | //如果edit有值表示隐藏ADD和编辑按钮
 |
| | |
| | | view.get("#btnEdit").set("visible",false);
 |
| | | view.get("#btnDel").set("visible",false);
 |
| | | view.get("#btn2End").set("visible",false);
 |
| | | }
 |
| | | 
 |
| | | //类型切换
 |
| | | if("OUT" == TYPE){
 |
| | | view.get("#dataGridCheckItem").set("visible",false);
 |
| | | view.get("#deWet").set("label","水分增重");
 |
| | | }else{
 |
| | | view.get("#deWet").set("label","水分扣重");
 |
| | | view.get("#dataGridCheckItem").set("visible",true);
 |
| | | }
 |
| | | 
 |
| | | //默认查询查询提条件
 |
| | |
| | | view.get("#textAbnormal").set("value",null);
 |
| | | };
 |
| | | 
 |
| | | //删除
 |
| | | del = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | var textDel = view.get("#textAbnormal.text");
 |
| | | if(!textDel){
 |
| | | $notify("请填写异常删除原因!");
 |
| | | return;
 |
| | | }
 |
| | | data.set("remarks",textDel);
 |
| | | view.get("#ajaxDel").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | data.remove();
 |
| | | view.get("#dialogAbnormal").close();
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //追踪
 |
| | | showImg = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | |
| | | view.get("#dialogImg").show();
 |
| | | };
 |
| | | 
 |
| | | //异常执行
 |
| | | todoError = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | data.remove();
 |
| | | view.get("#dialogAbnormal").close();
 |
| | | query();
 |
| | | $alert("执行成功,自动刷新数据!");
 |
| | | }
 |
| | | });
 |
| | |
| | | view.get("#btnOK").set("visible",false);
 |
| | | view.get("#dialogMain").show();
 |
| | | };
 |
| | | 
 |
| | | //流程完成-执行
 |
| | | completeExe = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //根据仓库自动回填粮食品种,登记,产地新
 |
| | | autoByDepot = function(depotId){
 |
| | | view.get("#ajaxGetDepot").set("parameter",depotId).execute(function(result){
 |
| | | if(result){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | data.set("foodLocation",result.foodLocation);
 |
| | | data.set("foodLevel",result.foodLevel);
 |
| | | data.set("foodVariety",result.foodVariety);
 |
| | | data.set("foodYear",result.foodYear);
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //根据粮食品种查询化验项并回显
 |
| | | checkByFood = function(foodVariety){
 |
| | | if(TYPE == "IN"){
 |
| | | view.get("#ajaxGetCheck").set("parameter",{foodVariety:foodVariety,deptId:deptId}).execute(function(result){
 |
| | | if(result){
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("checkItems",result);
 |
| | | }
 |
| | | });
 |
| | | }
 |
| | | //根据粮食品种获取系统配置检测项目
 |
| | | flushCheckList = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if (!data.get("foodVariety")) {
 |
| | | $alert("没有配置粮食品种,无法获取质检项!");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#ajaxGetCheck").set("parameter",{checkId:data.get("checkId"),foodVariety:data.get("foodVariety")}).execute(function(result){
 |
| | | if(result){
 |
| | | data.set("checkItems",result);
 |
| | | }else{
 |
| | | $alert("当前粮食品种未配置质检项,请联系管理员");
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | </ClientEvent> |
| | | <ClientEvent name="onCreate">
 |
| | |
| | | //汇总结果
 |
| | | var deSum = 0, addSum = 0, settleWeight = 0, recordWeight = 0;
 |
| | | //扣水杂
 |
| | | var deWet = curData.get("deWet"), deImpurity = curData.get("deImpurity");
 |
| | | var deWet = 0;
 |
| | | 
 |
| | | var impurity = curData.get("impurity"), wet = curData.get("wet");
 |
| | | var impurity = 0;
 |
| | | 
 |
| | | 
 |
| | | var deBase = 0, multiple = 0;
 |
| | | var checkItems = curData.get("checkItems");
 |
| | | //水分杂质,更改比例并且水分扣重还没计算情况下
 |
| | | if ("wet" == name) {
 |
| | | var checkItem = this.getCheckItem(checkItems,"C01", "C020101");
 |
| | | if (checkItem) {
 |
| | | deBase = Number(wet) - Number(checkItem.get("upperLimit"));
 |
| | | if (deBase == 0) return;
 |
| | | multiple = parseInt(deBase / checkItem.get("ruleNum"));//倍数
 |
| | | deWet = (netWeight * multiple * checkItem.get("ruleReduce") / 100.00).toFixed(0);
 |
| | | }
 |
| | | }
 |
| | | 
 |
| | | //杂质
 |
| | | if ("impurity" == name) {
 |
| | | checkItem = this.getCheckItem(recordData.checkItems, "C02","C01010301");
 |
| | | if (checkItem) {
 |
| | | deBase = Number(impurity) - Number(checkItem.get("upperLimit"));
 |
| | | if (deBase == 0) return;
 |
| | | multiple = parseInt(deBase / checkItem.get("ruleNum"));
 |
| | | deImpurity = (netWeight * multiple * checkItem.get("ruleReduce") / 100.00).toFixed(0);
 |
| | | }
 |
| | | }
 |
| | | 
 |
| | | /** 总扣重,不含增重*/
 |
| | | deSum = Number(curData.get("deOther")) + Number(curData.get("deHandle"));
 |
| | |
| | | /** 结算重量 = 净重 - 总扣重 + 增重 */
 |
| | | settleWeight = Number(netWeight) - Number(deSum) + Number(addSum);
 |
| | | 
 |
| | | curData.set("impurity",impurity);
 |
| | | curData.set("wet",wet);
 |
| | | curData.set("deImpurity",deImpurity);
 |
| | | curData.set("deWet",deWet);
 |
| | | curData.set("deSum",deSum);
 |
| | | curData.set("netWeight",netWeight);
 |
| | | curData.set("settleWeight",settleWeight);
 |
| | | curData.set("recordWeight",recordWeight);
 |
| | | };
 |
| | | 
 |
| | | 
 |
| | | /**
 |
| | | * 根据化验项和传递过来的参数获取当前参数的配置信息
 |
| | |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="width">250</Property> |
| | | <Property name="name">customerName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">客户名称</Property> |
| | |
| | | <Property name="property">fullWeight</Property> |
| | | <Property name="caption">毛重</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="emptyWeight"> |
| | | <Property name="property">emptyWeight</Property> |
| | | <Property name="caption">皮重</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="netWeight"> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">净重</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn id="columnDeSum"> |
| | | <Property name="property">deSum</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="caption">总扣重</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">deSum</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="settleWeight"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="visible">true</Property> |
| | | <Property name="name">recordWeight</Property> |
| | | </DataColumn> |
| | |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Container layoutConstraint="bottom"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataPilot layoutConstraint="right"> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </ToolBar> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">表单信息</Property> |
| | |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">false</Property> |
| | | </Button> |
| | | <Button id="btnAddCheck"> |
| | | <ClientEvent name="onClick">var data = view.get("#dataGridMain.currentEntity");
 |
| | | var list = data.get("checkItems");
 |
| | | 
 |
| | | list.insert({});
 |
| | | console.log(list);
 |
| | | </ClientEvent> |
| | | <Property name="caption">新增化验项</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <Property name="visible">true</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">cancelMain();</ClientEvent> |
| | | <Property name="caption">取消操作</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | <Button id="btnFlushCheck" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">flushCheckList();</ClientEvent> |
| | | <Property name="caption">获取质检项</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-gavel</Property> |
| | | <Property name="visible">false</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <TabControl> |
| | | <ClientEvent name="onTabChange">if(arg.newTab.get("name") == "tabCheck"){
 |
| | | view.get("#btnAddCheck").set("visible",true);
 |
| | | view.get("#btnFlushCheck").set("visible",true);
 |
| | | }else{
 |
| | | view.get("#btnAddCheck").set("visible",false);
 |
| | | view.get("#btnFlushCheck").set("visible",false);
 |
| | | }</ClientEvent> |
| | | <ControlTab> |
| | | <Property name="caption">基础信息</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">specType</Property> |
| | | <Property name="property">specType</Property> |
| | | <Editor> |
| | | <RadioGroup> |
| | | <RadioButton> |
| | | <Property name="text">散粮</Property> |
| | | <Property name="value">散粮</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">25kg</Property> |
| | | <Property name="value">25kg</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">50kg</Property> |
| | | <Property name="value">50kg</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*,*,*,*</Property> |
| | | <Property name="cols">*,50,*,50,*,50</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">emptyWeightTime</Property> |
| | | <Property name="property">emptyWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">fullWeightUser</Property> |
| | | <Property name="property">fullWeightUser</Property> |
| | | <Property name="label">称重人</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">netWeight</Property> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="name">fullWeightTime</Property> |
| | | <Property name="property">fullWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deImpurity</Property> |
| | | <Property name="property">deImpurity</Property> |
| | | <Property name="showHint">false</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="property">completeTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">impurity</Property> |
| | | <Property name="property">impurity</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- % --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement id="deWet"> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deWet</Property> |
| | | <Property name="property">deWet</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">wet</Property> |
| | | <Property name="property">wet</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- % --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deHandle</Property> |
| | | <Property name="property">deHandle</Property> |
| | | <Property name="label">现场扣重</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">deSum</Property> |
| | | <Property name="property">deSum</Property> |
| | | <Property name="name">deOtherInfo</Property> |
| | | <Property name="property">deOtherInfo</Property> |
| | | <Property name="label">其他原因</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">deCheck</Property> |
| | | <Property name="property">deCheck</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">addCheck</Property> |
| | | <Property name="property">addCheck</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">80px</Property> |
| | | </Property> |
| | | <Property name="text">说明:质检增扣重请查看质检信息栏位详细</Property> |
| | | </Label> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">netWeight</Property> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">fullWeightTime</Property> |
| | | <Property name="property">fullWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">emptyWeightTime</Property> |
| | | <Property name="property">emptyWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">recordWeight</Property> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="property">completeTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:4"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">80px</Property> |
| | | </Property> |
| | | <Property name="text">说明:结算重量=净重-扣重+增重;入库重量=净重-扣重;扣水杂:正数=扣重,负数=增重</Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="regionPadding:5" layoutConstraint="padding:10"> |
| | | <Property name="caption">备注说明</Property> |
| | | <Property name="caption">其他需要补充信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <AutoFormElement> |
| | | <Property name="name">jjlx</Property> |
| | | <Property name="property">jjlx</Property> |
| | | <Editor> |
| | | <RadioGroup> |
| | | <RadioButton> |
| | | <Property name="text">称重入库</Property> |
| | | <Property name="value">0</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="value">1</Property> |
| | | <Property name="text">标准包入库</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bzw</Property> |
| | | <Property name="property">bzw</Property> |
| | | <Editor> |
| | | <RadioGroup> |
| | | <RadioButton> |
| | | <Property name="text">麻袋</Property> |
| | | <Property name="value">1</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">编织袋</Property> |
| | | <Property name="value">2</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">散装</Property> |
| | | <Property name="value">3</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="value">9</Property> |
| | | <Property name="text">其他</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dbz</Property> |
| | | <Property name="property">dbz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bzbjs</Property> |
| | | <Property name="property">bzbjs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dePackage</Property> |
| | | <Property name="property">dePackage</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">price</Property> |
| | | <Property name="property">price</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | |
| | | </Container> |
| | | </ControlTab> |
| | | <ControlTab id="tabCheck"> |
| | | <Property name="caption">扦样化验</Property> |
| | | <Property name="caption">质检信息</Property> |
| | | <Property name="iconClass">fa fa-gavel</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="name">tabCheck</Property> |
| | | <Container layout="padding:10"> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | |
| | | <Property name="label">化验结果</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkTime</Property> |
| | | <Property name="property">checkTime</Property> |
| | | <Property name="label">质检时间</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <DataGrid id="dataGridCheckItem" layoutConstraint="padding:10"> |
| | | <ClientEvent name="onCellValueEdit">//实现化验项目调整,更新主表中值
 |
| | | var entity = arg.entity;
 |
| | | var inoutData = view.get("#dsMain.data:#");
 |
| | | 
 |
| | | if(entity.get("standardId") =="C01"){//水分
 |
| | | inoutData.set("wet",entity.get("value"));
 |
| | | }
 |
| | | 
 |
| | | if(entity.get("standardId") =="C02"){//雜志
 |
| | | inoutData.set("impurity",entity.get("value"));
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">#.checkItems</Property> |
| | | <Property name="highlightCurrentRow">false</Property> |
| | |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">del();</ClientEvent> |
| | | <Property name="caption">确定删除</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">todoError();</ClientEvent> |
| | | <Property name="caption">异常终止</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <UpdateAction id="ajaxDel"> |
| | | <Property name="dataResolver">inoutDataPR#delInoutData</Property> |
| | | <Property name="confirmMessage">确定要执行删除么?</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <UpdateAction id="ajaxError"> |
| | | <Property name="dataResolver">inoutDataPR#errorInoutData</Property> |
| | | <UpdateItem> |
| | |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxInitAdd"> |
| | | <Property name="service">inoutDataPR#initAddData</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetDepot"> |
| | | <Property name="service">depotPR#getDepot</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxGetCheck"> |
| | | <Property name="service">checkStandardPR#listCheckItemsByFoodVariety</Property> |
| | | <Property name="service">checkStandardPR#listCheckItemsByParam</Property> |
| | | </AjaxAction> |
| | | <Export2ReportAction id="exportExcel"> |
| | | <Property name="extension">xls</Property> |
| | |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">printCheck();</ClientEvent> |
| | | <Property name="caption">打印检验单</Property> |
| | | <Property name="caption">打印质检单</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">printPay();</ClientEvent> |
| | | <Property name="caption">打印结算单</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="disabled">true</Property> |
| | | </MenuItem> |
| | | <Separator/> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">printBatchWeight();</ClientEvent> |
| | | <Property name="caption">批量过磅单</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">printBatchCheck();</ClientEvent> |
| | | <Property name="caption">批量化验单</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | </MenuItem> |
| | | <MenuItem> |