| | |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain" parent="dtInoutRecord"> |
| | | <ClientEvent name="onDataChange">if(arg.property =="depotId"){
 |
| | | autoByDepot(arg.newValue);
 |
| | | }
 |
| | | 
 |
| | | if(arg.property =="foodVariety"){
 |
| | | <ClientEvent name="onDataChange">if(arg.property =="foodVariety"){
 |
| | | var entity = arg.entity;
 |
| | | entity.reset("checkItems");
 |
| | | }</ClientEvent> |
| | |
| | | <Entity> |
| | | <Property name="checkId">$${this.checkId}</Property> |
| | | <Property name="foodVariety">$${this.foodVariety}</Property> |
| | | <Property name="deptId">$${this.deptId}</Property> |
| | | </Entity> |
| | | </Property> |
| | | <Property name="dataProvider">checkStandardPR#listCheckItemsByCheckId</Property> |
| | | <Property name="dataProvider">checkStandardPR#listCheckItemsByParam</Property> |
| | | <Property name="dataType">[dtCheckItems]</Property> |
| | | </Reference> |
| | | </DataType> |
| | |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <ClientEvent name="onReady">var TYPE = "${request.getParameter('type')}";
 |
| | | 
 |
| | | //ç±»å忢
 |
| | | if("OUT" == TYPE){
 |
| | | view.get("#columnDeSum").set("visible",false);
 |
| | | //view.get("#label1").set("text","注ï¼åºåºæ°´åå¢éè®°å
¥ç»ç®éé");
 |
| | | 
 |
| | | 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("#btnSave").set("disabled",false);
 |
| | | view.get("#btnPrintWeigh").set("disabled",true);
 |
| | | view.get("#btnPrintCheck").set("disabled",true);
 |
| | | 
 |
| | | view.get("#dsMain").set("parameter",TYPE).flushAsync();
 |
| | | };
 |
| | | 
 |
| | | 
 |
| | | flush();
 |
| | | 
 |
| | | /**
 |
| | |
| | | $alert("æ°æ®éªè¯å¤±è´¥ï¼ãåºç¡ä¿¡æ¯ã-ç»ç®ééå¿
须大äº0ï¼");
 |
| | | return;
 |
| | | }
 |
| | | 
 |
| | | view.get("#uaSave").execute(function(result){
 |
| | | if(result){
 |
| | | $alert("ä¿å失败ï¼"+result);
 |
| | |
| | | $alert("ä¿åæåï¼å¯ä»¥è¿è¡æå°åéæ°ææ°è¡¨åï¼");
 |
| | | }
 |
| | | });
 |
| | | }
 |
| | | 
 |
| | | /**
 |
| | | * æå°åºåºè¿ç£
å
 |
| | | */
 |
| | | printBill = function(htmlStr) {
 |
| | | var LODOP = CLODOP;
 |
| | | LODOP.PRINT_INIT("ç§°éå");
 |
| | | LODOP.SET_PRINT_PAGESIZE(1,2100,1400, "A4");
 |
| | | //LODOP.SET_PRINT_PAGESIZE(1, 0, '90mm', "A4");
 |
| | | LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", htmlStr);
 |
| | | LODOP.PREVIEW();
 |
| | | };
 |
| | | 
 |
| | | print5016Bill = function(htmlStr) {
 |
| | | var LODOP = CLODOP;
 |
| | | LODOP.PRINT_INIT("ç§°éå");
 |
| | | LODOP.SET_PRINT_PAGESIZE(1, 1050, 1400, "");
 |
| | | LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", htmlStr);
 |
| | | LODOP.PREVIEW();
 |
| | | };
 |
| | | 
 |
| | | //æå°æ¦æ ·å
 |
| | | printCheck = function(){
 |
| | | $alert("æå°æ¨¡çæªå®ä¹â¦â¦");
 |
| | | };
 |
| | | 
 |
| | | //æå°ç§°éå
 |
| | | printWeight = function(){
 |
| | | var data = view.get("#dsMain.data");
 |
| | | if(!data) return;
 |
| | | var companyId = data.get("companyId");
 |
| | | console.log(companyId);
 |
| | | view.get("#ajaxPrint").set("parameter",data).execute(function(result){
 |
| | | if(companyId && companyId == "5016"){
 |
| | | print5016Bill(result);
 |
| | | }else {
 |
| | | printBill(result);
 |
| | | }
 |
| | | });
 |
| | | };
 |
| | | 
 |
| | | //æ ¹æ®ä»åºèªå¨åå¡«ç²®é£åç§ï¼ç»è®°ï¼äº§å°æ°
 |
| | | autoByDepot = function(depotId){
 |
| | | view.get("#ajaxGetDepot").set("parameter",depotId).execute(function(result){
 |
| | | if(result){
 |
| | | //console.log(result);
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("foodLocation",result.foodLocation);
 |
| | | data.set("foodLevel",result.foodLevel);
 |
| | | data.set("foodVariety",result.foodVariety);
 |
| | | data.set("foodYear",result.foodYear);
 |
| | | }
 |
| | | });
 |
| | | };</ClientEvent> |
| | | }</ClientEvent> |
| | | <ClientEvent name="onCreate">
 |
| | | /**
 |
| | | * èªå¨è®¡ç®ï¼å½å页é¢ä¸èªå¨å
³èæ¦æ ·è®°å½ï¼å
¨é¨ç±æå¨ä¸ºå
 |
| | |
| | | <Button id="btnSave" layoutConstraint="left"> |
| | | <ClientEvent name="onClick">save();</ClientEvent> |
| | | <Property name="caption">æ°æ®æäº¤</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <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="caption">æå°è´¨æ£å</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | <Property name="iconClass">fa fa-print</Property> |
| | | <Property name="tip">ä¿åæ°æ®åå¯ç¨</Property> |
| | |
| | | <Property name="width">150</Property> |
| | | <Property name="name">tabCommon</Property> |
| | | <Container> |
| | | <FieldSet layout="regionPadding:10" layoutConstraint="padding:10"> |
| | | <FieldSet layout="regionPadding:5" layoutConstraint="padding:10"> |
| | | <Property name="caption">åºæ¬ä¿¡æ¯</Property> |
| | | <Buttons/> |
| | | <Children> |
| | |
| | | <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> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">foodLevel</Property> |
| | | <Property name="property">foodLevel</Property> |
| | | <Editor/> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">noticeName</Property> |
| | | <Property name="property">noticeName</Property> |
| | | <Property name="trigger">ddNotice</Property> |
| | | <Property name="editable">false</Property> |
| | | <Property name="label">å
¥åºéç¥å</Property> |
| | | <Property name="name">registerTime</Property> |
| | | <Property name="property">registerTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">registerTime</Property> |
| | | <Property name="property">registerTime</Property> |
| | | <Property name="name">foodLocation</Property> |
| | | <Property name="property">foodLocation</Property> |
| | | <Property name="trigger">ddDicArea</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | </FieldSet> |
| | | <FieldSet layout="regionPadding:10" layoutConstraint="padding:10"> |
| | | <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="cols">*,50,*,50,*,50</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">emptyWeightTime</Property> |
| | | <Property name="property">emptyWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">fullWeightUser</Property> |
| | | <Property name="property">fullWeightUser</Property> |
| | | <Property name="label">ç§°é人</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id è§å d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">netWeight</Property> |
| | | <Property name="property">netWeight</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="name">fullWeightTime</Property> |
| | | <Property name="property">fullWeightTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <ClientEvent name="onBlur">//id è§å d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deImpurity</Property> |
| | | <Property name="property">deImpurity</Property> |
| | | <Property name="showHint">false</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="property">completeTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">impurity</Property> |
| | | <Property name="property">impurity</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- % --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement id="deWet"> |
| | | <ClientEvent name="onBlur">//id è§å d_prop
 |
| | | var id = self.getDom().id;
 |
| | | var prop = id.substring(2,id.length);
 |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deWet</Property> |
| | | <Property name="property">deWet</Property> |
| | | <Property name="showHint">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">wet</Property> |
| | | <Property name="property">wet</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor> |
| | | <TextEditor> |
| | | <Property name="blankText"> -- % --</Property> |
| | | </TextEditor> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <ClientEvent name="onBlur">//id è§å d_prop
 |
| | |
| | | deAutoByWeight(prop);</ClientEvent> |
| | | <Property name="name">deHandle</Property> |
| | | <Property name="property">deHandle</Property> |
| | | <Property name="label">ç°åºæ£é</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">deSum</Property> |
| | | <Property name="property">deSum</Property> |
| | | <Property name="name">deOtherInfo</Property> |
| | | <Property name="property">deOtherInfo</Property> |
| | | <Property name="label">å
¶ä»åå </Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <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> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">completeTime</Property> |
| | | <Property name="property">completeTime</Property> |
| | | <Property name="name">recordWeight</Property> |
| | | <Property name="property">recordWeight</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> |
| | | <Label layoutConstraint="colSpan:6"> |
| | | <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:10" layoutConstraint="padding:10"> |
| | | <Property name="caption">夿³¨è¯´æ</Property> |
| | | <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="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <AutoFormElement> |
| | | <Property name="name">jjlx</Property> |
| | | <Property name="property">jjlx</Property> |
| | | <Editor> |
| | | <RadioGroup> |
| | | <RadioButton> |
| | | <Property name="text">ç§°éå
¥åº</Property> |
| | | <Property name="value">0</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="value">1</Property> |
| | | <Property name="text">æ åå
å
¥åº</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bzw</Property> |
| | | <Property name="property">bzw</Property> |
| | | <Editor> |
| | | <RadioGroup> |
| | | <RadioButton> |
| | | <Property name="text">麻è¢</Property> |
| | | <Property name="value">1</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">ç¼ç»è¢</Property> |
| | | <Property name="value">2</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="text">æ£è£
</Property> |
| | | <Property name="value">3</Property> |
| | | </RadioButton> |
| | | <RadioButton> |
| | | <Property name="value">9</Property> |
| | | <Property name="text">å
¶ä»</Property> |
| | | </RadioButton> |
| | | </RadioGroup> |
| | | </Editor> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dbz</Property> |
| | | <Property name="property">dbz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bzbjs</Property> |
| | | <Property name="property">bzbjs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dePackage</Property> |
| | | <Property name="property">dePackage</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">price</Property> |
| | | <Property name="property">price</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remarks</Property> |
| | | <Property name="property">remarks</Property> |
| | | <Property name="editorType">TextArea</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | |
| | | <Container layout="padding:10"> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">100</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | |
| | | <Property name="label">åéªç»æ</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">checkTime</Property> |
| | | <Property name="property">checkTime</Property> |
| | | <Property name="label">è´¨æ£æ¶é´</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <DataGrid id="dataGridCheckItem" layoutConstraint="padding:10"> |
| | | <ClientEvent name="onCellValueEdit">//å®ç°åéªé¡¹ç®è°æ´ï¼æ´æ°ä¸»è¡¨ä¸å¼
 |
| | | var entity = arg.entity;
 |
| | | var inoutData = view.get("#dsMain.data:#");
 |
| | | 
 |
| | | if(entity.get("standardId") =="C01"){//æ°´å
 |
| | | inoutData.set("wet",entity.get("value"));
 |
| | | }
 |
| | | 
 |
| | | if(entity.get("standardId") =="C02"){//éå¿
 |
| | | inoutData.set("impurity",entity.get("value"));
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">#.checkItems</Property> |
| | | <Property name="highlightCurrentRow">false</Property> |
| | |
| | | </Container> |
| | | </ControlTab> |
| | | </TabControl> |
| | | <CustomDropDown id="ddFoodOrigin"> |
| | | <YearDropDown id="yearDropDown"/> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">inoutDataPR#saveInoutData</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æäº¤ä¹ï¼</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <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> |
| | | <CustomDropDown id="ddDicArea"> |
| | | <Property name="minHeight">500</Property> |
| | | <Property name="assignmentMap">foodLocation=name</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Property name="assignmentMap">foodLocation=name,foodLocationId=code</Property> |
| | | <Container layout="regionPadding:5"> |
| | | <DataSet id="dsFoodOrigin"> |
| | | <Property name="dataProvider">dicTriggerPR#pagFoodLocationData</Property> |
| | | <Property name="dataType">[dtFoodOrigin]</Property> |
| | | <DataSet id="dsDicArea"> |
| | | <Property name="dataProvider">dicAreaPR#pageList</Property> |
| | | <Property name="parameter"></Property> |
| | | <Property name="pageSize">30</Property> |
| | | <Property name="dataType">[dtArea]</Property> |
| | | <Property name="pageSize">1000</Property> |
| | | </DataSet> |
| | | <Container layout="hbox regionPadding:5"> |
| | | <TextEditor id="key2"> |
| | | <Property name="blankText"> -- ç¼ç æè
åç§° --</Property> |
| | | <Property name="blankText"> -åç§°æç®æ¼ï¼åäº¬å¸ bjs -</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> |
| | | view.get("#dsDicArea").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:#");
 |
| | | <ClientEvent name="onClick">var data = view.get("#dsDicArea.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | view.get("#ddDicArea").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:#");
 |
| | | <ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsDicArea.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddFoodOrigin").close(data.toJSON());
 |
| | | view.get("#ddDicArea").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | <Property name="dataSet">dsDicArea</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="code"> |
| | | <Property name="property">code</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <DataPilot layoutConstraint="bottom"> |
| | | <Property name="dataSet">dsFoodOrigin</Property> |
| | | <Property name="dataSet">dsDicArea</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <CustomDropDown id="ddNotice"> |
| | | <Property name="minHeight">400</Property> |
| | | <Property name="assignmentMap">noticeId=id,noticeName=name,customerId=customerId,customerName=customerName</Property> |
| | | <Property name="assignmentMap">noticeId=id,customerName=customerName</Property> |
| | | <Property name="minWidth">500</Property> |
| | | <Property name="autoOpen">true</Property> |
| | | <Container layout="regionPadding:5"> |
| | |
| | | <Button> |
| | | <ClientEvent name="onClick">var key = view.get("#key3.value");
 |
| | | var type = "${request.getParameter('type')}";
 |
| | | //var customerId = view.get("#dataGridMain.currentEntity").get("customerId");
 |
| | | //var depotId = view.get("#dataGridMain.currentEntity").get("depotId");
 |
| | | //var foodVariety = view.get("#dataGridMain.currentEntity").get("foodVariety");
 |
| | | //view.get("#dsNotice").set("parameter",{key:key,type:type,customerId:customerId,depotId:depotId,foodVariety:foodVariety}).flushAsync();
 |
| | | 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("#dsCustomer.data:#");
 |
| | | <ClientEvent name="onClick">var data = view.get("#dsNotice.data:#");
 |
| | | if(data){
 |
| | | view.get("#ddCustomer").close(data.toJSON());
 |
| | | view.get("#ddNotice").close(data.toJSON());
 |
| | | }</ClientEvent> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="caption">ç¡®å®</Property> |
| | |
| | | }</ClientEvent> |
| | | <Property name="dataSet">dsNotice</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <Property name="property">customerName</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="name">customerName</Property> |
| | | </DataColumn> |
| | | <DataColumn name="id"> |
| | | <Property name="property">id</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="visible">false</Property> |
| | | <DataColumn name="name"> |
| | | <Property name="property">name</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | </CustomDropDown> |
| | | <YearDropDown id="yearDropDown"/> |
| | | <UpdateAction id="uaSave"> |
| | | <Property name="dataResolver">inoutDataPR#saveInoutData</Property> |
| | | <Property name="confirmMessage">ç¡®å®è¦æäº¤ä¹ï¼</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | <Property name="validateData">false</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxGetDepot"> |
| | | <Property name="service">depotPR#getDepot</Property> |
| | | </AjaxAction> |
| | | <AjaxAction id="ajaxPrint"> |
| | | <Property name="service">inoutDataPR#printWeightBill</Property> |
| | | <Property name="executingMessage">æ£å¨æ§è¡æå°â¦â¦</Property> |
| | | <Property name="async">false</Property> |
| | | </AjaxAction> |
| | | </View> |
| | | </ViewConfig> |