| | |
| | | </PropertyDef> |
| | | <PropertyDef name="userId"> |
| | | <Property name="label">身份证号</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="required">false</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="noticeId"> |
| | | <Property name="label">通知单号</Property> |
| | |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_TYPE_")}</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <Reference name="checkItems"> |
| | | <Property name="parameter"> |
| | | <Entity> |
| | | <Property name="checkId">$${this.checkId}</Property> |
| | | <Property name="foodVariety">$${this.foodVariety}</Property> |
| | | <Property name="type">$${this.type}</Property> |
| | | </Entity> |
| | | </Property> |
| | | <Property name="dataProvider">checkStandardPR#listCheckItemsByParam</Property> |
| | | <Property name="dataType">[dtCheckItems]</Property> |
| | | </Reference> |
| | | <Reference name="files"> |
| | | <Property name="dataProvider">sys.fileManager#listFile</Property> |
| | | <Property name="dataType">[dtFileData]</Property> |
| | | <Property name="parameter">$${this.id}</Property> |
| | | </Reference> |
| | | </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> |
| | | <PropertyDef name="operaSymbolValue"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="addNum"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">增重</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="deNum"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">扣重</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="addPrice"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">增价</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="dePrice"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">扣价</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="result"> |
| | | <Property></Property> |
| | | <Property name="label">检验结果</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("inoutDataPR#triggerResult").getResult()}</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | |
| | | */
 |
| | | flush = function(){
 |
| | | view.get("#btnSave").set("disabled",false);
 |
| | | view.get("#btnPrintWeigh").set("disabled",true);
 |
| | | view.get("#btnPrintCheck").set("disabled",true);
 |
| | | view.get("#dsMain").set("parameter",TYPE).flushAsync();
 |
| | | };
 |
| | | flush();
 |
| | |
| | | save = function(){
 |
| | | var data = view.get("#dsMain.data");
 |
| | | if(data.validate() != 'ok'){
 |
| | | $alert("数据验证失败,请查看【基础信息】【扦样化验信息】中红色提醒!");
 |
| | | $alert("数据验证失败,请查看红色提醒!");
 |
| | | return;
 |
| | | }
 |
| | | var netWeight = data.get("netWeight");
 |
| | | if(netWeight <= 0){
 |
| | | $alert("数据验证失败,【基础信息】-结算重量必须大于0!");
 |
| | | var recordWeight = data.get("recordWeight");
 |
| | | if(recordWeight <= 0){
 |
| | | $alert("数据验证失败,入库重量必须大于0!");
 |
| | | return;
 |
| | | }
 |
| | | view.get("#uaSave").execute(function(result){
 |
| | |
| | | $alert("保存失败:"+result);
 |
| | | }else{
 |
| | | view.get("#btnSave").set("disabled",true);
 |
| | | view.get("#btnPrintWeigh").set("disabled",false);
 |
| | | view.get("#btnPrintCheck").set("disabled",false);
 |
| | | $alert("保存成功,可以进行打印和重新提新表单!");
 |
| | | flush();
 |
| | | 
 |
| | |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | </Button> |
| | | <Button id="btnPrintCheck" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">printCheck();</ClientEvent> |
| | | <Property name="caption">打印质检单</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="tip">保存数据后可用</Property> |
| | | </Button> |
| | | <Button id="btnPrintWeigh" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">printWeight();</ClientEvent> |
| | | <Property name="caption">打印过磅单</Property> |
| | | <Property name="exClassName">btn-warm</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="disabled">true</Property> |
| | | <Property name="tip">保存数据后可用</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">flush();</ClientEvent> |
| | | <Property name="caption">刷新页面</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="name">completeTime</Property> |
| | | <Property name="property">completeTime</Property> |
| | | <Property name="label">登记时间</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">registerTime</Property> |
| | | <Property name="property">registerTime</Property> |
| | | <Property name="name">foodType</Property> |
| | | <Property name="property">foodType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddDicArea</Property> |
| | | <Property name="name">checkStatus</Property> |
| | | <Property name="property">checkStatus</Property> |
| | | <Property name="label">化验结果</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,50,*,50,*,50</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"> |
| | | <Property name="name">emptyWeightTime</Property> |
| | | <Property name="property">emptyWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">fullWeightUser</Property> |
| | | <Property name="property">fullWeightUser</Property> |
| | | <Property name="label">称重人</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);
 |
| | | </ClientEvent> |
| | | <Property name="name">fullWeight</Property> |
| | | <Property name="property">fullWeight</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">completeTime</Property> |
| | | <Property name="property">completeTime</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">deHandle</Property> |
| | | <Property name="property">deHandle</Property> |
| | | <Property name="label">现场扣重</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deOther</Property> |
| | | <Property name="property">deOther</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">deOtherInfo</Property> |
| | | <Property name="property">deOtherInfo</Property> |
| | | <Property name="label">其他原因</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id 规则 d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deCheck</Property> |
| | | <Property name="property">deCheck</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">addCheck</Property> |
| | | <Property name="property">addCheck</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label layoutConstraint="colSpan:2"> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | <Property name="padding-left">80px</Property> |
| | | </Property> |
| | | <Property name="text">说明:质检增扣重请查看质检信息栏位详细</Property> |
| | | </Label> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">netWeight</Property> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <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">recordWeight</Property> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </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> |
| | | <Property name="labelSeparator">:</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">jjlx</Property> |
| | | <Property name="property">jjlx</Property> |
| | |
| | | <Editor> |
| | | <RadioGroup> |
| | | <RadioButton> |
| | | <Property name="text">麻袋</Property> |
| | | <Property name="text">包</Property> |
| | | <Property name="value">1</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">编织袋</Property> |
| | | <Property name="text">桶</Property> |
| | | <Property name="value">2</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">散装</Property> |
| | | <Property name="text">箱</Property> |
| | | <Property name="value">3</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">price</Property> |
| | | <Property name="property">price</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">dbz</Property> |
| | | <Property name="property">dbz</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">bzbjs</Property> |
| | | <Property name="property">bzbjs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:1"> |
| | | <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">dePackage</Property> |
| | | <Property name="property">dePackage</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">price</Property> |
| | | <Property name="property">price</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:1"> |
| | | <Property name="name">settleWeight</Property> |
| | | <Property name="property">settleWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:1"> |
| | | <Property name="name">recordWeight</Property> |
| | | <Property name="property">recordWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="editorType">TextArea</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> |
| | | <AutoFormElement> |
| | | <Property name="name">checkTime</Property> |
| | | <Property name="property">checkTime</Property> |
| | | <Property name="label">质检时间</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodType</Property> |
| | | <Property name="property">foodType</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sampleUser</Property> |
| | | <Property name="property">sampleUser</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sampleTime</Property> |
| | | <Property name="property">sampleTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">sampleType</Property> |
| | | <Property name="property">sampleType</Property> |
| | | <Property name="editorType">RadioGroup</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <DataGrid id="dataGridCheckItem" layoutConstraint="padding:10"> |
| | | <ClientEvent name="onCellValueEdit">var data = arg.entity
 |
| | | if (data) {
 |
| | | //填写的数据值;
 |
| | | var newValue = data.get("value");
 |
| | | //标准值;
 |
| | | var limit = data.get("upperLimit");
 |
| | | //运算符;
 |
| | | var symbol = data.get("operaSymbol");
 |
| | | if (symbol && limit && newValue) {
 |
| | | if (">=" == symbol) {
 |
| | | if (newValue < limit) {
 |
| | | data.set("result", "0");
 |
| | | }
 |
| | | else {
 |
| | | data.set("result", "1");
 |
| | | }
 |
| | | }
 |
| | | if ("<=" == symbol) {
 |
| | | if (newValue > limit) {
 |
| | | data.set("result", "0");
 |
| | | }
 |
| | | else {
 |
| | | data.set("result", "1");
 |
| | | }
 |
| | | }
 |
| | | if ("==" == symbol) {
 |
| | | if (newValue != limit) {
 |
| | | data.set("result", "0");
 |
| | | }
 |
| | | else {
 |
| | | data.set("result", "1");
 |
| | | }
 |
| | | }
 |
| | | }
 |
| | | }</ClientEvent> |
| | | <Property name="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> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="operaSymbolValue"> |
| | | <Property name="property">operaSymbolValue</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">标准值</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="deNum"> |
| | | <Property name="property">deNum</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="addNum"> |
| | | <Property name="property">addNum</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="dePrice"> |
| | | <Property name="property">dePrice</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="addPrice"> |
| | | <Property name="property">addPrice</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="result"> |
| | | <Property name="property">result</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </DataColumn> |
| | | <DataColumn name="remarks"> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | </ControlTab> |
| | | </TabControl> |
| | | <TabControl id="tabControlImage" layoutConstraint="left"> |
| | | <Property name="width">370</Property> |
| | | <ControlTab id="tabImage"> |
| | | <Property name="name">tabImage</Property> |
| | | <Property name="caption">出入库过程记录</Property> |
| | | <FieldSet layout="regionPadding:5" layoutConstraint="top padding:10"> |
| | | <Buttons> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.PROGRESS = "WEIGHT_EMPTY";
 |
| | | </ClientEvent> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-cloud-upload</Property> |
| | | <Property name="action">uploadImg</Property> |
| | | <Property name="caption">空车称</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.PROGRESS = "WEIGHT_FULL";
 |
| | | </ClientEvent> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-cloud-upload</Property> |
| | | <Property name="action">uploadImg1</Property> |
| | | <Property name="caption">满车称</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.PROGRESS = "HANDLE";</ClientEvent> |
| | | <Property name="caption">值仓</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-cloud-upload</Property> |
| | | <Property name="action">uploadImg2</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <DataGrid id="dgFiles"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="selectionMode">singleRow</Property> |
| | | <Property name="dataPath">#.files</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="bizTag"> |
| | | <Property name="property">bizTag</Property> |
| | | <Property name="visible">false</Property> |
| | | </DataColumn> |
| | | <DataColumn name="fileName"> |
| | | <Property name="property">fileName</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">arg.dom.innerHTML = "<a href='javascript:;' onClick='delFile()'>删除</a>";
 |
| | | </ClientEvent> |
| | | <Property name="property">fileId</Property> |
| | | <Property name="name">fileId</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="caption">操作</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="width">80</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Children> |
| | | </FieldSet> |
| | | </ControlTab> |
| | | </TabControl> |
| | | <YearDropDown id="yearDropDown"/> |
| | |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxPrint"> |
| | | <Property name="service">inoutDataPR#printWeightBill</Property> |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxPrintCheckBill"> |
| | | <Property name="async">false</Property> |
| | | <Property name="executingMessage">正在执行打印……</Property> |
| | | <Property name="service">inoutDataPR#printShipBill</Property> |
| | | </AjaxAction> |
| | | <CustomDropDown id="ddDicArea"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="minWidth">500</Property> |
| | |
| | | </DataGrid> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <UploadAction id="uploadImg"> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "EMPTY";
 |
| | | self.set("parameter",{
 |
| | | bizTag: bizTag
 |
| | | })</ClientEvent> |
| | | <ClientEvent name="onFileUploaded">//附件上传完成后添加业务数据
 |
| | | var mainData = view.get("#dsMain.data");
 |
| | | var fileName = arg.returnValue;
 |
| | | var files = mainData.get("files");
 |
| | | files.insert({bizTag:view.PROGRESS,fileName:fileName,createTime:new Date()});</ClientEvent> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | if(data){
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "EMPTY";
 |
| | | self.set("parameter",{
 |
| | | bizTag:bizTag
 |
| | | })
 |
| | | }</ClientEvent> |
| | | <Property name="maxFileSize">20MB</Property> |
| | | <Property name="successMessage">上传成功</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="fileResolver">inoutDataPR#uploadImage</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | <UploadAction id="uploadImg1"> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | 
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "FULL";
 |
| | | self.set("parameter",{
 |
| | | bizTag: bizTag
 |
| | | })</ClientEvent> |
| | | <ClientEvent name="onFileUploaded">//附件上传完成后添加业务数据
 |
| | | var mainData = view.get("#dsMain.data");
 |
| | | var fileName = arg.returnValue;
 |
| | | var files = mainData.get("files");
 |
| | | files.insert({bizTag:view.PROGRESS,fileName:fileName});</ClientEvent> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | if(data){
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "FULL";
 |
| | | self.set("parameter",{
 |
| | | bizTag:bizTag
 |
| | | })
 |
| | | }</ClientEvent> |
| | | <Property name="maxFileSize">20MB</Property> |
| | | <Property name="successMessage">上传成功</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="fileResolver">inoutDataPR#uploadImage</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | <UploadAction id="uploadImg2"> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | 
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "HANDLE";
 |
| | | self.set("parameter",{
 |
| | | bizTag: bizTag
 |
| | | })</ClientEvent> |
| | | <ClientEvent name="onFileUploaded">//附件上传完成后添加业务数据
 |
| | | var mainData = view.get("#dsMain.data");
 |
| | | var fileName = arg.returnValue;
 |
| | | var files = mainData.get("files");
 |
| | | files.insert({bizTag:view.PROGRESS,fileName:fileName});</ClientEvent> |
| | | <ClientEvent name="beforeFileUploaded">var data = view.get("#dsMain.data:#")
 |
| | | if(data){
 |
| | | var plateNum = data.get("plateNum");
 |
| | | var bizTag = "HANDLE";
 |
| | | self.set("parameter",{
 |
| | | bizTag:bizTag
 |
| | | })
 |
| | | }</ClientEvent> |
| | | <Property name="maxFileSize">20MB</Property> |
| | | <Property name="successMessage">上传成功</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="fileResolver">inoutDataPR#uploadImage</Property> |
| | | <Filters/> |
| | | </UploadAction> |
| | | <AjaxAction id="ajaxDelFile"> |
| | | <Property name="service">inoutDataPR#delImage</Property> |
| | | <Property name="async">true</Property> |
| | | <Property name="confirmMessage">确定要删除么?</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |