| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <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="dataType">[dtCheckItems]</Property> |
| | | </Reference> |
| | | </DataType> |
| | | <DataType name="dtQuery"> |
| | | <Property name="creationType">com.ld.igds.inout.dto.InoutParam</Property> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">出入库类型</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">所属分库</Property> |
| | | </PropertyDef> |
| | | <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="plateNum"> |
| | | <Property name="label">车船号</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">粮食品种</Property> |
| | | <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> |
| | | </PropertyDef> |
| | | <PropertyDef name="progress"> |
| | | <Property></Property> |
| | | <Property name="label">流程进度</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("PROCESS_STATUS_")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="recordStatus"> |
| | | <Property></Property> |
| | | <Property name="label">数据状态</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("RECORD_STATUS")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkStatus"> |
| | | <Property></Property> |
| | | <Property name="label">是否合格</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("CHECK_STATUS")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="start"> |
| | | <Property name="label">开始时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="label">截止时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userId"> |
| | | <Property name="label">身份证</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="orderTag"> |
| | | <Property name="defaultValue">DESC</Property> |
| | | <Property name="label">排序规则</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">DESC</Property> |
| | | <Property name="name">时间降序</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">ASC</Property> |
| | | <Property name="name">时间升序</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | </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> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardId"> |
| | | <Property></Property> |
| | | <Property name="label">检测项编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardName"> |
| | | <Property></Property> |
| | | <Property name="label">化验项</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="unit"> |
| | | <Property></Property> |
| | | <Property name="label">单位</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="upperLimit"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">标准上限</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardValue"> |
| | | <Property></Property> |
| | | <Property name="label">合格说明</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="value"> |
| | | <Property></Property> |
| | | <Property name="label">检测值</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remarks"> |
| | | <Property></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="standardPrice"> |
| | | <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="operaSymbol"> |
| | | <Property></Property> |
| | | <Property name="label">运算符号</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和编辑按钮
 |
| | | if(EDIT){
 |
| | | 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("#dsQuery").insert({
 |
| | | type:TYPE,
 |
| | | deptId:deptId
 |
| | | });
 |
| | | 
 |
| | | //查询
 |
| | | query = function(){
 |
| | | var data = view.get("#dsQuery.data");
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();
 |
| | | };
 |
| | | query();
 |
| | | 
 |
| | | 
 |
| | | //编辑,只有流程结束的才可以修改
 |
| | | edit = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | if ("RECORD" == data.get("progress")) {
 |
| | | view.get("#btnOK").set("visible",true);
 |
| | | }else{
 |
| | | view.get("#btnOK").set("visible",false);
 |
| | | }
 |
| | | view.get("#dialogMain").show();
 |
| | | };
 |
| | | 
 |
| | | //主信息窗口关闭
 |
| | | cancelMain = function(){
 |
| | | view.get("#dsMain.data:#").cancel();
 |
| | | view.get("#btnComplete").set("visible",false);
 |
| | | view.get("#btnOK").set("visible",true);
 |
| | | view.get("#dialogMain").hide();
 |
| | | };
 |
| | | 
 |
| | | //异常操作
 |
| | | showAbnormal = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | view.get("#dialogAbnormal").show();
 |
| | | 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");
 |
| | | if (!data) return;
 |
| | | var user = encodeURIComponent(data.get("userName"));
 |
| | | var plateNum = encodeURIComponent(data.get("plateNum"));
 |
| | | 
 |
| | | view.get("#iFrameImg").set("path", "./basic/inout/inout-img?id=" + data.get("id")+"&plateNum="+plateNum+"&user="+user);
 |
| | | view.get("#dialogImg").show();
 |
| | | };
 |
| | | 
 |
| | | todoError = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | var textError = view.get("#textAbnormal.text");
 |
| | | if(!textError){
 |
| | | $alert("请说明异常终止原因!!");
 |
| | | return;
 |
| | | }
 |
| | | data.set("remarks",textError);
 |
| | | view.get("#ajaxError").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | view.get("#dialogAbnormal").close();
 |
| | | query();
 |
| | | $alert("执行成功,自动刷新数据!");
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //流程完成-开始
 |
| | | completeStart = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | if( data.validate() != 'ok'){
 |
| | | $notify("请填写完整信息!!");
 |
| | | }
 |
| | | 
 |
| | | view.get("#btnComplete").set("visible",true);
 |
| | | view.get("#btnOK").set("visible",false);
 |
| | | view.get("#dialogMain").show();
 |
| | | };
 |
| | | //流程完成-执行
 |
| | | completeExe = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | if (data.validate() != 'ok') {
 |
| | | $notify("请填写完整信息!!");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | view.get("#ajaxComplete").set("parameter",data).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | $alert("执行成功,自动刷新数据!");
 |
| | | view.get("#btnComplete").set("visible",false);
 |
| | | view.get("#dialogMain").hide();
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //根据仓库自动回填粮食品种,登记,产地新
 |
| | | 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){
 |
| | | <Arguments/> |
| | | <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#listCheckItemsByParam</Property> |
| | | <Property name="dataType">[dtCheckItems]</Property> |
| | | </Reference> |
| | | </DataType> |
| | | <DataType name="dtQuery"> |
| | | <Property name="creationType">com.ld.igds.inout.dto.InoutParam</Property> |
| | | <PropertyDef name="type"> |
| | | <Property name="label">出入库类型</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deptId"> |
| | | <Property></Property> |
| | | <Property name="label">所属分库</Property> |
| | | </PropertyDef> |
| | | <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="plateNum"> |
| | | <Property name="label">车船号</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="foodVariety"> |
| | | <Property></Property> |
| | | <Property name="label">粮食品种</Property> |
| | | <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> |
| | | </PropertyDef> |
| | | <PropertyDef name="progress"> |
| | | <Property></Property> |
| | | <Property name="label">流程进度</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("PROCESS_STATUS_")} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="recordStatus"> |
| | | <Property></Property> |
| | | <Property name="label">数据状态</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("RECORD_STATUS")} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkStatus"> |
| | | <Property></Property> |
| | | <Property name="label">是否合格</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | ${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("CHECK_STATUS")} |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="start"> |
| | | <Property name="label">开始时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="label">截止时间</Property> |
| | | <Property name="dataType">Date</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="userId"> |
| | | <Property name="label">身份证</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="orderTag"> |
| | | <Property name="defaultValue">DESC</Property> |
| | | <Property name="label">排序规则</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="code">DESC</Property> |
| | | <Property name="name">时间降序</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="code">ASC</Property> |
| | | <Property name="name">时间升序</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | </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> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">组织编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardId"> |
| | | <Property></Property> |
| | | <Property name="label">检测项编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardName"> |
| | | <Property></Property> |
| | | <Property name="label">化验项</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="unit"> |
| | | <Property></Property> |
| | | <Property name="label">单位</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="upperLimit"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">标准上限</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="standardValue"> |
| | | <Property></Property> |
| | | <Property name="label">合格说明</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="value"> |
| | | <Property></Property> |
| | | <Property name="label">检测值</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remarks"> |
| | | <Property></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="standardPrice"> |
| | | <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="operaSymbol"> |
| | | <Property></Property> |
| | | <Property name="label">运算符号</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和编辑按钮
 |
| | | if(EDIT){
 |
| | | 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("#dsQuery").insert({
 |
| | | type:TYPE,
 |
| | | deptId:deptId
 |
| | | });
 |
| | | 
 |
| | | //查询
 |
| | | query = function(){
 |
| | | var data = view.get("#dsQuery.data");
 |
| | | view.get("#dsMain").set("parameter",data).flushAsync();
 |
| | | };
 |
| | | query();
 |
| | | 
 |
| | | 
 |
| | | //编辑,只有流程结束的才可以修改
 |
| | | edit = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | if ("RECORD" == data.get("progress")) {
 |
| | | view.get("#btnOK").set("visible",true);
 |
| | | }else{
 |
| | | view.get("#btnOK").set("visible",false);
 |
| | | }
 |
| | | view.get("#dialogMain").show();
 |
| | | };
 |
| | | 
 |
| | | //主信息窗口关闭
 |
| | | cancelMain = function(){
 |
| | | view.get("#dsMain.data:#").cancel();
 |
| | | view.get("#btnComplete").set("visible",false);
 |
| | | view.get("#btnOK").set("visible",true);
 |
| | | view.get("#dialogMain").hide();
 |
| | | };
 |
| | | 
 |
| | | //异常操作
 |
| | | showAbnormal = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | view.get("#dialogAbnormal").show();
 |
| | | 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");
 |
| | | if (!data) return;
 |
| | | var user = encodeURIComponent(data.get("userName"));
 |
| | | var plateNum = encodeURIComponent(data.get("plateNum"));
 |
| | | 
 |
| | | view.get("#iFrameImg").set("path", "./basic/inout/inout-img?id=" + data.get("id")+"&plateNum="+plateNum+"&user="+user);
 |
| | | view.get("#dialogImg").show();
 |
| | | };
 |
| | | 
 |
| | | todoError = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | var textError = view.get("#textAbnormal.text");
 |
| | | if(!textError){
 |
| | | $alert("请说明异常终止原因!!");
 |
| | | return;
 |
| | | }
 |
| | | data.set("remarks",textError);
 |
| | | view.get("#ajaxError").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | view.get("#dialogAbnormal").close();
 |
| | | query();
 |
| | | $alert("执行成功,自动刷新数据!");
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //流程完成-开始
 |
| | | completeStart = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | if( data.validate() != 'ok'){
 |
| | | $notify("请填写完整信息!!");
 |
| | | }
 |
| | | 
 |
| | | view.get("#btnComplete").set("visible",true);
 |
| | | view.get("#btnOK").set("visible",false);
 |
| | | view.get("#dialogMain").show();
 |
| | | };
 |
| | | //流程完成-执行
 |
| | | completeExe = function(){
 |
| | | var data = view.get("#dataGridMain.currentEntity");
 |
| | | if(!data) return;
 |
| | | 
 |
| | | if (data.validate() != 'ok') {
 |
| | | $notify("请填写完整信息!!");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | view.get("#ajaxComplete").set("parameter",data).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | $alert("执行成功,自动刷新数据!");
 |
| | | view.get("#btnComplete").set("visible",false);
 |
| | | view.get("#dialogMain").hide();
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //根据仓库自动回填粮食品种,登记,产地新
 |
| | | 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);
 |
| | | }
 |
| | | });
 |
| | | }
 |
| | | };
 |
| | | </ClientEvent> |
| | | <ClientEvent name="onCreate">
 |
| | | /**
 |
| | | * 自动计算,当前页面不自动关联扦样记录,全部由手动为准
 |
| | | * 
 |
| | | * 1.净重 = 毛重 - 皮重
 |
| | | * 2.总扣重 = 现场扣重 + 其他扣重 + 扣水杂质
 |
| | | * 3.结算重量 = 净重 - 总扣重 (含水杂增重)
 |
| | | * 4.出/入库重量 = 净重 - 总扣重 (不含水杂增重)
 |
| | | * 
 |
| | | * 5.入库时:扣水杂 正数 = 扣重,负数 = 增重
 |
| | | * 6.出库时:水分增重,正数=增重,负数=扣重
 |
| | | */
 |
| | | deAutoByWeight = function(name){
 |
| | | 
 |
| | | if(null == name) name = "1";
 |
| | | 
 |
| | | var curData = view.get("#dsMain.data:#");
 |
| | | var fullWeight = curData.get("fullWeight");
 |
| | | var emptyWeight = curData.get("emptyWeight");
 |
| | | 
 |
| | | if(fullWeight == 0 || emptyWeight == 0){
 |
| | | return;
 |
| | | }
 |
| | | // 净重
 |
| | | var netWeight = Number(fullWeight) - Number(emptyWeight);
 |
| | | 
 |
| | | if (netWeight <= 0){
 |
| | | $notify("净重小于0,当前称重存在逻辑问题");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | //汇总结果
 |
| | | var deSum = 0, addSum = 0, settleWeight = 0, recordWeight = 0;
 |
| | | //扣水杂
 |
| | | var deWet = curData.get("deWet"), deImpurity = curData.get("deImpurity");
 |
| | | 
 |
| | | var impurity = curData.get("impurity"), wet = curData.get("wet");
 |
| | | 
 |
| | | 
 |
| | | var deBase = 0, multiple = 0;
 |
| | | var checkItems = curData.get("checkItems");
 |
| | | //水分杂质,更改比例并且水分扣重还没计算情况下
 |
| | | if ("wet" == name) {
 |
| | | var checkItem = this.getCheckItem(checkItems,"C01", "C020101");
 |
| | | if (checkItem) {
 |
| | | }
 |
| | | });
 |
| | | }
 |
| | | };
 |
| | | </ClientEvent> |
| | | <ClientEvent name="onCreate">
 |
| | | /**
 |
| | | * 自动计算,当前页面不自动关联扦样记录,全部由手动为准
 |
| | | * 
 |
| | | * 1.净重 = 毛重 - 皮重
 |
| | | * 2.总扣重 = 现场扣重 + 其他扣重 + 扣水杂质
 |
| | | * 3.结算重量 = 净重 - 总扣重 (含水杂增重)
 |
| | | * 4.出/入库重量 = 净重 - 总扣重 (不含水杂增重)
 |
| | | * 
 |
| | | * 5.入库时:扣水杂 正数 = 扣重,负数 = 增重
 |
| | | * 6.出库时:水分增重,正数=增重,负数=扣重
 |
| | | */
 |
| | | deAutoByWeight = function(name){
 |
| | | 
 |
| | | if(null == name) name = "1";
 |
| | | 
 |
| | | var curData = view.get("#dsMain.data:#");
 |
| | | var fullWeight = curData.get("fullWeight");
 |
| | | var emptyWeight = curData.get("emptyWeight");
 |
| | | 
 |
| | | if(fullWeight == 0 || emptyWeight == 0){
 |
| | | return;
 |
| | | }
 |
| | | // 净重
 |
| | | var netWeight = Number(fullWeight) - Number(emptyWeight);
 |
| | | 
 |
| | | if (netWeight <= 0){
 |
| | | $notify("净重小于0,当前称重存在逻辑问题");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | //汇总结果
 |
| | | var deSum = 0, addSum = 0, settleWeight = 0, recordWeight = 0;
 |
| | | //扣水杂
 |
| | | var deWet = curData.get("deWet"), deImpurity = curData.get("deImpurity");
 |
| | | 
 |
| | | var impurity = curData.get("impurity"), wet = curData.get("wet");
 |
| | | 
 |
| | | 
 |
| | | 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) {
 |
| | | }
 |
| | | }
 |
| | | 
 |
| | | //杂质
 |
| | | 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"));
 |
| | | 
 |
| | | //出库
 |
| | | if ("OUT" == curData.get("type")) {
 |
| | | if (Number(deWet) > 0) {//增重
 |
| | | addSum = addSum + Number(deWet);
 |
| | | } else {
 |
| | | deSum = deSum + Number(deWet);
 |
| | | }
 |
| | | 
 |
| | | if (Number(deImpurity) > 0) {//扣重
 |
| | | deSum = deSum + Number(deImpurity);
 |
| | | } else {
 |
| | | addSum = addSum + Number(deImpurity);
 |
| | | }
 |
| | | }else{
 |
| | | if (Number(deWet) > 0) {//扣重
 |
| | | deSum = deSum + Number(deWet);
 |
| | | } else {
 |
| | | addSum = addSum + Number(deWet);
 |
| | | }
 |
| | | if (Number(deImpurity) > 0) {//扣重
 |
| | | deSum = deSum + Number(deImpurity);
 |
| | | } else {
 |
| | | addSum = addSum + Number(deImpurity);
 |
| | | }
 |
| | | }
 |
| | | 
 |
| | | deSum = deSum.toFixed(0);
 |
| | | /** 增重转正数,便于计算 */
 |
| | | addSum = Math.abs(addSum).toFixed(0);
 |
| | | 
 |
| | | /** 入库重量 = 净重 - 总扣重 */
 |
| | | recordWeight = Number(netWeight) - Number(deSum);
 |
| | | 
 |
| | | /** 结算重量 = 净重 - 总扣重 + 增重 */
 |
| | | 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);
 |
| | | };
 |
| | | 
 |
| | | 
 |
| | | /**
 |
| | | * 根据化验项和传递过来的参数获取当前参数的配置信息
 |
| | | * @param checkItems
 |
| | | * @param code1 系统参数ID
 |
| | | * @param code2 国标参数ID
 |
| | | * @returns {undefined}
 |
| | | */
 |
| | | function getCheckItem(checkItems, code1, code2) {
 |
| | | if (!checkItems) return null;
 |
| | | $.each(checkItems, function (index, checkItem) {
 |
| | | if (checkItem.get("standardId") == code1 || checkItem.get("standardId") == code2) {
 |
| | | if (checkItem.get("ruleNum") && checkItem.get("upperLimit") > 0.0) {
 |
| | | return checkItem;
 |
| | | }
 |
| | | }
 |
| | | });
 |
| | | return null;
 |
| | | }</ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <Property name="javaScriptFile">./static/plugins/lodop/LodopFuncs.js</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="pageSize">20</Property> |
| | | <Property name="dataProvider">inoutDataPR#pageInoutData</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <Property name="dataType">dtQuery</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 id="btnEdit" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">edit();</ClientEvent> |
| | | <Property name="caption">编辑</Property> |
| | | <Property name="exClassName">btn-warm</Property> |
| | | <Property name="iconClass">fa fa-pencil</Property> |
| | | <Property name="hideMode">display</Property> |
| | | </Button> |
| | | <Button id="btnDel" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">showAbnormal();</ClientEvent> |
| | | <Property name="caption">异常操作</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | <Property name="hideMode">display</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">showImg();</ClientEvent> |
| | | <Property name="caption">过程追踪</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-picture-o</Property> |
| | | </Button> |
| | | <Button id="btn2End" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">completeStart();</ClientEvent> |
| | | <Property name="caption">快速结束</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-gavel</Property> |
| | | <Property name="hideMode">display</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <Property name="caption">单据打印</Property> |
| | | <Property name="exClassName">btn-warm</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="menu">menuEdit</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <Property name="caption">导出EXCEL</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | <Property name="action">exportExcel</Property> |
| | | </Button> |
| | | </Container> |
| | | <AutoForm layoutConstraint="top"> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Property name="trigger">defaultDateDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">end</Property> |
| | | <Property name="property">end</Property> |
| | | <Property name="trigger">defaultDateDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">plateNum</Property> |
| | | <Property name="property">plateNum</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">-- 支持模糊 --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userId</Property> |
| | | <Property name="property">userId</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">-- 支持模糊 --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="trigger">autoOpenMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">orderTag</Property> |
| | | <Property name="property">orderTag</Property> |
| | | <Property name="trigger">autoMappingDropDown1</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="hbox regionPadding:15"> |
| | | <Button> |
| | | <ClientEvent name="onClick">query();
 |
| | | </ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var type ="${request.getParameter('type')}";
 |
| | | var deptId = window.parent.DEPT_ID;//父页面中的分库编码
 |
| | | view.get("#dsQuery").setData({type:type,deptId:deptId});</ClientEvent> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="caption">重置</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | <Container layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataGrid id="dataGridMain" layoutConstraint="center"> |
| | | <ClientEvent name="onDataRowDoubleClick">edit();</ClientEvent> |
| | | <ClientEvent name="onDataRowClick">//实现点击即选中
 |
| | | //self.set("selection",arg.data); |
| | | }
 |
| | | 
 |
| | | /** 总扣重,不含增重*/
 |
| | | deSum = Number(curData.get("deOther")) + Number(curData.get("deHandle"));
 |
| | | 
 |
| | | //出库
 |
| | | if ("OUT" == curData.get("type")) {
 |
| | | if (Number(deWet) > 0) {//增重
 |
| | | addSum = addSum + Number(deWet);
 |
| | | } else {
 |
| | | deSum = deSum + Number(deWet);
 |
| | | }
 |
| | | 
 |
| | | if (Number(deImpurity) > 0) {//扣重
 |
| | | deSum = deSum + Number(deImpurity);
 |
| | | } else {
 |
| | | addSum = addSum + Number(deImpurity);
 |
| | | }
 |
| | | }else{
 |
| | | if (Number(deWet) > 0) {//扣重
 |
| | | deSum = deSum + Number(deWet);
 |
| | | } else {
 |
| | | addSum = addSum + Number(deWet);
 |
| | | }
 |
| | | if (Number(deImpurity) > 0) {//扣重
 |
| | | deSum = deSum + Number(deImpurity);
 |
| | | } else {
 |
| | | addSum = addSum + Number(deImpurity);
 |
| | | }
 |
| | | }
 |
| | | 
 |
| | | deSum = deSum.toFixed(0);
 |
| | | /** 增重转正数,便于计算 */
 |
| | | addSum = Math.abs(addSum).toFixed(0);
 |
| | | 
 |
| | | /** 入库重量 = 净重 - 总扣重 */
 |
| | | recordWeight = Number(netWeight) - Number(deSum);
 |
| | | 
 |
| | | /** 结算重量 = 净重 - 总扣重 + 增重 */
 |
| | | 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);
 |
| | | };
 |
| | | 
 |
| | | 
 |
| | | /**
 |
| | | * 根据化验项和传递过来的参数获取当前参数的配置信息
 |
| | | * @param checkItems
 |
| | | * @param code1 系统参数ID
 |
| | | * @param code2 国标参数ID
 |
| | | * @returns {undefined}
 |
| | | */
 |
| | | function getCheckItem(checkItems, code1, code2) {
 |
| | | if (!checkItems) return null;
 |
| | | $.each(checkItems, function (index, checkItem) {
 |
| | | if (checkItem.get("standardId") == code1 || checkItem.get("standardId") == code2) {
 |
| | | if (checkItem.get("ruleNum") && checkItem.get("upperLimit") > 0.0) {
 |
| | | return checkItem;
 |
| | | }
 |
| | | }
 |
| | | });
 |
| | | return null;
 |
| | | } |
| | | </ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="dynaRowHeight">false</Property> |
| | | <Property name="selectionMode">multiRows</Property> |
| | | <RowSelectorColumn/> |
| | | <DataColumn name="id"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.dom.style.color = "#f67d06";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">id</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="plateNum"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">plateNum</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">userName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="name">userName</Property> |
| | | </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> |
| | | </DataColumn> |
| | | <DataColumn name="foodVariety"> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotId"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fullWeight"> |
| | | <Property name="property">fullWeight</Property> |
| | | <Property name="caption">毛重</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</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> |
| | | </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> |
| | | </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="visible">true</Property> |
| | | <Property name="name">recordWeight</Property> |
| | | </DataColumn> |
| | | <DataColumn name="progress"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true;</ClientEvent> |
| | | <Property name="property">progress</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="recordStatus"> |
| | | <Property name="property">recordStatus</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="visible">false</Property> |
| | | </DataColumn> |
| | | <DataColumn name="completeTime"> |
| | | <Property name="property">completeTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Container 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="closeable">false</Property> |
| | | <Property name="caption">表单信息</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="showCaptionBar">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOK"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data.validate() != 'ok'){
 |
| | | $notify("数据校验失败!!");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }
 |
| | | $notify("数据执行完成!!");
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">确定保存</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | </Button> |
| | | <Button id="btnComplete" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">completeExe();</ClientEvent> |
| | | <Property name="caption">结束流程</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-gavel</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> |
| | | </Buttons> |
| | | <Children> |
| | | <TabControl> |
| | | <ClientEvent name="onTabChange">if(arg.newTab.get("name") == "tabCheck"){
 |
| | | view.get("#btnAddCheck").set("visible",true);
 |
| | | }else{
 |
| | | view.get("#btnAddCheck").set("visible",false);
 |
| | | }</ClientEvent> |
| | | <ControlTab> |
| | | <Property name="caption">基础信息</Property> |
| | | <Property name="iconClass">fa fa-download</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="name">tabCommon</Property> |
| | | <Container> |
| | | <FieldSet layout="regionPadding:5" layoutConstraint="padding:10"> |
| | | <Property name="caption">基本信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">plateNum</Property> |
| | | <Property name="property">plateNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userName</Property> |
| | | <Property name="property">userName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userId</Property> |
| | | <Property name="property">userId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userContact</Property> |
| | | <Property name="property">userContact</Property> |
| | | <Property name="label">联系电话</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="label">客户名称</Property> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="editable">false</Property> |
| | | <Property name="trigger">ddNotice</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">transType</Property> |
| | | <Property name="property">transType</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="text">其他</Property> |
| | | <Property name="value">4</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="label">装卸仓库</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</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/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodYear</Property> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="trigger">yearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">registerTime</Property> |
| | | <Property name="property">registerTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="regionPadding:5" layoutConstraint="padding:10"> |
| | | <Property name="caption">称重信息(单位:KG)</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*,*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">emptyWeight</Property> |
| | | <Property name="property">emptyWeight</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);
 |
| | | deAutoByWeight(prop);
 |
| | | </ClientEvent> |
| | | <Property name="name">fullWeight</Property> |
| | | <Property name="property">fullWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">netWeight</Property> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="readOnly">true</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> |
| | | <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
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deHandle</Property> |
| | | <Property name="property">deHandle</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);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deOther</Property> |
| | | <Property name="property">deOther</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">deSum</Property> |
| | | <Property name="property">deSum</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">settleWeight</Property> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <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> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Container> |
| | | </ControlTab> |
| | | <ControlTab id="tabCheck"> |
| | | <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="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodYear</Property> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="trigger">yearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkUser</Property> |
| | | <Property name="property">checkUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">price</Property> |
| | | <Property name="property">price</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkStatus</Property> |
| | | <Property name="property">checkStatus</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="visible">true</Property> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <Property name="javaScriptFile">./static/plugins/lodop/LodopFuncs.js</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="pageSize">20</Property> |
| | | <Property name="dataProvider">inoutDataPR#pageInoutData</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataSet id="dsQuery"> |
| | | <Property name="dataType">dtQuery</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 id="btnEdit" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">edit();</ClientEvent> |
| | | <Property name="caption">编辑</Property> |
| | | <Property name="exClassName">btn-warm</Property> |
| | | <Property name="iconClass">fa fa-pencil</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="standardName"> |
| | | <Property name="property">standardName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="value"> |
| | | <Property name="property">value</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">检测值(可编辑)</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn name="unit"> |
| | | <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="remarks"> |
| | | <Property name="property">remarks</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Button> |
| | | <Button id="btnDel" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">showAbnormal();</ClientEvent> |
| | | <Property name="caption">异常操作</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | <Property name="hideMode">display</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">showImg();</ClientEvent> |
| | | <Property name="caption">过程追踪</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-picture-o</Property> |
| | | </Button> |
| | | <Button id="btn2End" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">completeStart();</ClientEvent> |
| | | <Property name="caption">快速结束</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-gavel</Property> |
| | | <Property name="hideMode">display</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <Property name="caption">单据打印</Property> |
| | | <Property name="exClassName">btn-warm</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="menu">menuEdit</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <Property name="caption">导出EXCEL</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-file-excel-o</Property> |
| | | <Property name="action">exportExcel</Property> |
| | | </Button> |
| | | </Container> |
| | | <AutoForm layoutConstraint="top"> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="dataSet">dsQuery</Property> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Property name="trigger">defaultDateDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">end</Property> |
| | | <Property name="property">end</Property> |
| | | <Property name="trigger">defaultDateDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">plateNum</Property> |
| | | <Property name="property">plateNum</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">-- 支持模糊 --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userId</Property> |
| | | <Property name="property">userId</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText">-- 支持模糊 --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="trigger">autoOpenMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">orderTag</Property> |
| | | <Property name="property">orderTag</Property> |
| | | <Property name="trigger">autoMappingDropDown1</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="hbox regionPadding:15"> |
| | | <Button> |
| | | <ClientEvent name="onClick">query();
 |
| | | </ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var type ="${request.getParameter('type')}";
 |
| | | var deptId = window.parent.DEPT_ID;//父页面中的分库编码
 |
| | | view.get("#dsQuery").setData({type:type,deptId:deptId}); |
| | | </ClientEvent> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="caption">重置</Property> |
| | | </Button> |
| | | </Container> |
| | | </ControlTab> |
| | | </TabControl> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogImg"> |
| | | <Property name="width">1000</Property> |
| | | <Property name="height">95%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">流程追溯展示</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <IFrame id="iFrameImg"> |
| | | <Property name="width">100%</Property> |
| | | </IFrame> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogAbnormal" layout="regionPadding:5"> |
| | | <Property name="width">450</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">异常操作原因</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="exClassName">btn-warn</Property> |
| | | <Property name="hideMode">visibility</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").close();</ClientEvent> |
| | | <Property name="caption">取消操作</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <TextArea id="textAbnormal"> |
| | | <Property name="height">165</Property> |
| | | </TextArea> |
| | | <AutoForm> |
| | | <Property name="cols">*</Property> |
| | | <Label layoutConstraint="colSpan:1"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | </Property> |
| | | <Property name="text">异常终止:业务数据流程结束,重量信息不进行统计计算。</Property> |
| | | </Label> |
| | | <Label layoutConstraint="colSpan:1"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | </Property> |
| | | <Property name="text">删除操作:业务数据被删除且不统计,只保留日志记录。</Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">inoutDataPR#saveInoutData</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</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="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <UpdateAction id="ajaxComplete"> |
| | | <Property name="dataResolver">inoutDataPR#completeInoutData</Property> |
| | | <Property name="confirmMessage">确定要结束流程么?</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxPrint"> |
| | | <Property name="service">inoutDataPR#printWeightBill</Property> |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxShipPrint"> |
| | | <Property name="service">inoutDataPR#printShipBill</Property> |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxPrintCheck"> |
| | | <Property name="service">inoutDataPR#printCheckBill</Property> |
| | | <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> |
| | | </AjaxAction> |
| | | <Export2ReportAction id="exportExcel"> |
| | | <Property name="extension">xls</Property> |
| | | <Property name="template">dataGridMain</Property> |
| | | <Property name="maxSize">3000</Property> |
| | | <Property name="fileName">单据列表</Property> |
| | | <Property name="showTitle">true</Property> |
| | | <Property name="titleName">单据列表</Property> |
| | | <Property name="dataScope">currentPage</Property> |
| | | </Export2ReportAction> |
| | | <CustomDropDown id="ddFoodOrigin"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="assignmentMap">foodLocation=name</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsFoodOrigin"> |
| | | <Property name="dataProvider"></Property> |
| | | <Property name="dataType">[dtFoodOrigin]</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 layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataGrid id="dataGridMain" layoutConstraint="center"> |
| | | <ClientEvent name="onDataRowDoubleClick">edit();</ClientEvent> |
| | | <ClientEvent name="onDataRowClick">//实现点击即选中
 |
| | | //self.set("selection",arg.data); |
| | | </ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="dynaRowHeight">false</Property> |
| | | <Property name="selectionMode">multiRows</Property> |
| | | <RowSelectorColumn/> |
| | | <DataColumn name="id"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.dom.style.color = "#f67d06";
 |
| | | arg.processDefault = true; |
| | | </ClientEvent> |
| | | <Property name="property">id</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn name="plateNum"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true; |
| | | </ClientEvent> |
| | | <Property name="property">plateNum</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">userName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="name">userName</Property> |
| | | </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> |
| | | </DataColumn> |
| | | <DataColumn name="foodVariety"> |
| | | <Property name="property">foodVariety</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotId"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true; |
| | | </ClientEvent> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fullWeight"> |
| | | <Property name="property">fullWeight</Property> |
| | | <Property name="caption">毛重</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</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> |
| | | </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> |
| | | </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="visible">true</Property> |
| | | <Property name="name">recordWeight</Property> |
| | | </DataColumn> |
| | | <DataColumn name="progress"> |
| | | <ClientEvent name="onRenderCell">arg.dom.style.fontWeight = "bold";
 |
| | | arg.processDefault = true; |
| | | </ClientEvent> |
| | | <Property name="property">progress</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | </DataColumn> |
| | | <DataColumn name="recordStatus"> |
| | | <Property name="property">recordStatus</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="visible">false</Property> |
| | | </DataColumn> |
| | | <DataColumn name="completeTime"> |
| | | <Property name="property">completeTime</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">150</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </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> |
| | | <CustomDropDown id="ddNotice"> |
| | | <Property name="minHeight">400</Property> |
| | | <Property name="assignmentMap">noticeId=id,customerId=customerId,customerName=customerName</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsNotice"> |
| | | <Property name="dataProvider">inoutNoticePR#queryNoticeByKey</Property> |
| | | <Property name="parameter"> |
| | | <Entity> |
| | | <Property name="type">${request.getParameter('type')}</Property> |
| | | </Entity> |
| | | </Property> |
| | | <Property name="dataType">[dtNoticeDto]</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key3"> |
| | | <Property name="blankText"> -- 客户名称或编码 --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key3.value");
 |
| | | var type = "${request.getParameter('type')}";
 |
| | | view.get("#dsNotice").set("parameter",{key: key,type: type}).flushAsync();</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddNotice").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="caption">确定</Property> |
| | | </Button> |
| | | <Container layoutConstraint="bottom"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | <Property name="dataSet">dsMain</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | <DataGrid> |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddNotice").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsNotice</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">customerName</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <YearDropDown id="yearDropDown"/> |
| | | <Dialog id="dialogSelfPrint"> |
| | | <Property name="height">300</Property> |
| | | <Property name="width">600</Property> |
| | | <Property name="caption">自定义打印</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var html = view.get("#textAreaPrint.text");
 |
| | | 
 |
| | | self.get("parent").hide();
 |
| | | printBill(html);</ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").hide();
 |
| | | </ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <TextArea id="textAreaPrint"/> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Menu id="menuEdit"> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">var data = view.get("#dataGridMain.currentEntity");
 |
| | | if (!data) {
 |
| | | $alert("请先选择数据!");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | var transType = data.get("transType");
 |
| | | if(transType == "3"){
 |
| | | printShipWeight();
 |
| | | }else{
 |
| | | printWeight();
 |
| | | }</ClientEvent> |
| | | <Property name="caption">打印过磅单</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">printCheck();</ClientEvent> |
| | | <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> |
| | | <ClientEvent name="onClick">view.get("#dialogSelfPrint").show();</ClientEvent> |
| | | <Property name="caption">自定义打印</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | </MenuItem> |
| | | </Menu> |
| | | </View> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">表单信息</Property> |
| | | <Property name="width">1200</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="showCaptionBar">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOK"> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | if(data.validate() != 'ok'){
 |
| | | $notify("数据校验失败!!");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }
 |
| | | $notify("数据执行完成!!");
 |
| | | self.get("parent").hide();
 |
| | | }); |
| | | </ClientEvent> |
| | | <Property name="caption">确定保存</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | </Button> |
| | | <Button id="btnComplete" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">completeExe();</ClientEvent> |
| | | <Property name="caption">结束流程</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-gavel</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> |
| | | </Buttons> |
| | | <Children> |
| | | <TabControl> |
| | | <ClientEvent name="onTabChange">if(arg.newTab.get("name") == "tabCheck"){
 |
| | | view.get("#btnAddCheck").set("visible",true);
 |
| | | }else{
 |
| | | view.get("#btnAddCheck").set("visible",false);
 |
| | | } |
| | | </ClientEvent> |
| | | <ControlTab> |
| | | <Property name="caption">基础信息</Property> |
| | | <Property name="iconClass">fa fa-download</Property> |
| | | <Property name="width">150</Property> |
| | | <Property name="name">tabCommon</Property> |
| | | <Container> |
| | | <FieldSet layout="regionPadding:5" layoutConstraint="padding:10"> |
| | | <Property name="caption">基本信息</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">plateNum</Property> |
| | | <Property name="property">plateNum</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userName</Property> |
| | | <Property name="property">userName</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userId</Property> |
| | | <Property name="property">userId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">userContact</Property> |
| | | <Property name="property">userContact</Property> |
| | | <Property name="label">联系电话</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="label">客户名称</Property> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="editable">false</Property> |
| | | <Property name="trigger">ddNotice</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">transType</Property> |
| | | <Property name="property">transType</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="text">其他</Property> |
| | | <Property name="value">4</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="label">装卸仓库</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</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/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodYear</Property> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="trigger">yearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">registerTime</Property> |
| | | <Property name="property">registerTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="regionPadding:5" layoutConstraint="padding:10"> |
| | | <Property name="caption">称重信息(单位:KG)</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*,*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop); |
| | | </ClientEvent> |
| | | <Property name="name">emptyWeight</Property> |
| | | <Property name="property">emptyWeight</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);
 |
| | | deAutoByWeight(prop);
 |
| | | </ClientEvent> |
| | | <Property name="name">fullWeight</Property> |
| | | <Property name="property">fullWeight</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">netWeight</Property> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="readOnly">true</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> |
| | | <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
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop); |
| | | </ClientEvent> |
| | | <Property name="name">deHandle</Property> |
| | | <Property name="property">deHandle</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);
 |
| | | deAutoByWeight(prop); |
| | | </ClientEvent> |
| | | <Property name="name">deOther</Property> |
| | | <Property name="property">deOther</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">deSum</Property> |
| | | <Property name="property">deSum</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">settleWeight</Property> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <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> |
| | | <Buttons/> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | </Container> |
| | | </ControlTab> |
| | | <ControlTab id="tabCheck"> |
| | | <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="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">:</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodYear</Property> |
| | | <Property name="property">foodYear</Property> |
| | | <Property name="trigger">yearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkUser</Property> |
| | | <Property name="property">checkUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">price</Property> |
| | | <Property name="property">price</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkStatus</Property> |
| | | <Property name="property">checkStatus</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="visible">true</Property> |
| | | <Property name="hideMode">display</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="standardName"> |
| | | <Property name="property">standardName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="value"> |
| | | <Property name="property">value</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">检测值(可编辑)</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | <DataColumn name="unit"> |
| | | <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="remarks"> |
| | | <Property name="property">remarks</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | </ControlTab> |
| | | </TabControl> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogImg"> |
| | | <Property name="width">1000</Property> |
| | | <Property name="height">95%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">流程追溯展示</Property> |
| | | <Buttons/> |
| | | <Children> |
| | | <IFrame id="iFrameImg"> |
| | | <Property name="width">100%</Property> |
| | | </IFrame> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogAbnormal" layout="regionPadding:5"> |
| | | <Property name="width">450</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">异常操作原因</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="exClassName">btn-warn</Property> |
| | | <Property name="hideMode">visibility</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").close();</ClientEvent> |
| | | <Property name="caption">取消操作</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <TextArea id="textAbnormal"> |
| | | <Property name="height">165</Property> |
| | | </TextArea> |
| | | <AutoForm> |
| | | <Property name="cols">*</Property> |
| | | <Label layoutConstraint="colSpan:1"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | </Property> |
| | | <Property name="text">异常终止:业务数据流程结束,重量信息不进行统计计算。</Property> |
| | | </Label> |
| | | <Label layoutConstraint="colSpan:1"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | </Property> |
| | | <Property name="text">删除操作:业务数据被删除且不统计,只保留日志记录。</Property> |
| | | </Label> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">inoutDataPR#saveInoutData</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</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="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <UpdateAction id="ajaxComplete"> |
| | | <Property name="dataResolver">inoutDataPR#completeInoutData</Property> |
| | | <Property name="confirmMessage">确定要结束流程么?</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxPrint"> |
| | | <Property name="service">inoutDataPR#printWeightBill</Property> |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxShipPrint"> |
| | | <Property name="service">inoutDataPR#printShipBill</Property> |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxPrintCheck"> |
| | | <Property name="service">inoutDataPR#printCheckBill</Property> |
| | | <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> |
| | | </AjaxAction> |
| | | <Export2ReportAction id="exportExcel"> |
| | | <Property name="extension">xls</Property> |
| | | <Property name="template">dataGridMain</Property> |
| | | <Property name="maxSize">3000</Property> |
| | | <Property name="fileName">单据列表</Property> |
| | | <Property name="showTitle">true</Property> |
| | | <Property name="titleName">单据列表</Property> |
| | | <Property name="dataScope">currentPage</Property> |
| | | </Export2ReportAction> |
| | | <CustomDropDown id="ddFoodOrigin"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="assignmentMap">foodLocation=name</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsFoodOrigin"> |
| | | <Property name="dataProvider"></Property> |
| | | <Property name="dataType">[dtFoodOrigin]</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> |
| | | <CustomDropDown id="ddNotice"> |
| | | <Property name="minHeight">400</Property> |
| | | <Property name="assignmentMap">noticeId=id,customerId=customerId,customerName=customerName</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsNotice"> |
| | | <Property name="dataProvider">inoutNoticePR#queryNoticeByKey</Property> |
| | | <Property name="parameter"> |
| | | <Entity> |
| | | <Property name="type">${request.getParameter('type')}</Property> |
| | | </Entity> |
| | | </Property> |
| | | <Property name="dataType">[dtNoticeDto]</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key3"> |
| | | <Property name="blankText">-- 客户名称或编码 --</Property> |
| | | <Property name="width">200</Property> |
| | | </TextEditor> |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key3.value");
 |
| | | var type = "${request.getParameter('type')}";
 |
| | | view.get("#dsNotice").set("parameter",{key: key,type: |
| | | type}).flushAsync(); |
| | | </ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddNotice").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("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddNotice").close(data.toJSON());
 |
| | | } |
| | | </ClientEvent> |
| | | <Property name="dataSet">dsNotice</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">customerName</Property> |
| | | </DataColumn> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <YearDropDown id="yearDropDown"/> |
| | | <Dialog id="dialogSelfPrint"> |
| | | <Property name="height">300</Property> |
| | | <Property name="width">600</Property> |
| | | <Property name="caption">自定义打印</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var html = view.get("#textAreaPrint.text");
 |
| | | 
 |
| | | self.get("parent").hide();
 |
| | | printBill(html); |
| | | </ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">self.get("parent").hide();
 |
| | | </ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <TextArea id="textAreaPrint"/> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <Menu id="menuEdit"> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">var data = view.get("#dataGridMain.currentEntity");
 |
| | | if (!data) {
 |
| | | $alert("请先选择数据!");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | var transType = data.get("transType");
 |
| | | if(transType == "3"){
 |
| | | printShipWeight();
 |
| | | }else{
 |
| | | printWeight();
 |
| | | } |
| | | </ClientEvent> |
| | | <Property name="caption">打印过磅单</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | </MenuItem> |
| | | <MenuItem> |
| | | <ClientEvent name="onClick">printCheck();</ClientEvent> |
| | | <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> |
| | | <ClientEvent name="onClick">view.get("#dialogSelfPrint").show();</ClientEvent> |
| | | <Property name="caption">自定义打印</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | </MenuItem> |
| | | </Menu> |
| | | </View> |
| | | </ViewConfig> |