| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtDataReport"> |
| | | <Property name="creationType">com.fzzy.igds.domain.Quantity</Property> |
| | | <PropertyDef name="batchId"> |
| | | <Property></Property> |
| | | <Property name="label">æ£æµæ¹æ¬¡</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <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="weight"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">éé</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bulk"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">ä½ç§¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="receiveDate"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">æ£æµæ¶é´</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="checkUser"> |
| | | <Property></Property> |
| | | <Property name="label">æ£æµäºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">夿³¨ä¿¡æ¯</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="points"> |
| | | <Property></Property> |
| | | <Property name="label">ééç¹ä¿¡æ¯</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dataTypeC"> |
| | | <ClientEvent name="onDataChange">var prop = arg.property;
 |
| | | if(prop =='start' || prop == 'end'){
 |
| | | var entity = arg.entity;
 |
| | | entity.set("timeDesc",entity.get('start').formatDate("Y-m-d") +" æªè³ï¼"+entity.get('end').formatDate("Y-m-d"));
 |
| | | }</ClientEvent> |
| | | <Property name="creationType">com.fzzy.igds.data.QuantityParam</Property> |
| | | <PropertyDef name="title"> |
| | | <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="start"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">æ£æµæ¶é´å¼å§</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="end"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">æ£æµæ¶é´æªè³</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="createUser"> |
| | | <Property name="label">å¶è¡¨äºº</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="timeDesc"> |
| | | <Property name="label">æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <Property name="cache"> |
| | | <Property name="mode">clientSide</Property> |
| | | </Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtDataReport]</Property> |
| | | <Property name="pageSize">20</Property> |
| | | <Property name="dataProvider">quantityDataPR#getData</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataSet id="dataSetC"> |
| | | <Property name="dataType">dataTypeC</Property> |
| | | <Property name="dataProvider">quantityDataPR#getQuery</Property> |
| | | </DataSet> |
| | | <AutoForm> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <Property name="dataSet">dataSetC</Property> |
| | | <Property name="labelSeparator">ï¼</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="trigger">autoMappingDropDown2</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">start</Property> |
| | | <Property name="property">start</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">end</Property> |
| | | <Property name="property">end</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="hbox regionPadding:10"> |
| | | <Button> |
| | | <ClientEvent name="onClick">var param = view.get("#dataSetC.data");
 |
| | | view.get("#dsMain").set("parameter",param).flushAsync();
 |
| | | 
 |
| | | //å¤å¶ææ¬ä¿¡æ¯
 |
| | | //var user = "${loginUser.getCname()}";
 |
| | | //var text = "æ£æµå¨æï¼";
 |
| | | //if(param.get("start")){
 |
| | | // text += param.get("start").formatDate("Y-m-d");
 |
| | | //}else{
 |
| | | // text += "æªè®¾ç½®";
 |
| | | //}
 |
| | | //if(param.get("end")){
 |
| | | // text += " è³ "+param.get("end").formatDate("Y-m-d");
 |
| | | //}else{
 |
| | | // text += " è³ "+new Date().formatDate("Y-m-d");
 |
| | | //}
 |
| | | 
 |
| | | //view.get("#labelBillUser").set("text","å¶è¡¨äººï¼"+user);
 |
| | | //view.get("#labelBillCheckDate").set("text",text);</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dataSetC").flushAsync();</ClientEvent> |
| | | <Property name="caption">éç½®</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | <Container layoutConstraint="center"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataGrid id="dataGrid1" layoutConstraint="center "> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <Property name="headerRowHeight">30</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="batchId"> |
| | | <Property name="property">batchId</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="depotId"> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="weight"> |
| | | <Property name="property">weight</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bulk"> |
| | | <Property name="property">bulk</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="receiveDate"> |
| | | <Property name="property">receiveDate</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="checkUser"> |
| | | <Property name="property">checkUser</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="visible">false</Property> |
| | | </DataColumn> |
| | | <DataColumn name="remark"> |
| | | <Property name="property">remark</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <AutoForm id="autoForm1" layoutConstraint="top"> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="dataSet">dataSetC</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="showHint">false</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">title</Property> |
| | | <Property name="property">title</Property> |
| | | <Property name="showLabel">false</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Property name="style"> |
| | | <Property name="font">bold 30px Georgia, serif;</Property> |
| | | <Property name="text-align">center</Property> |
| | | </Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">timeDesc</Property> |
| | | <Property name="property">timeDesc</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">depotId</Property> |
| | | <Property name="property">depotId</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Property name="labelWidth">110</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createUser</Property> |
| | | <Property name="property">createUser</Property> |
| | | <Property name="editorType">Label</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Container> |
| | | <Container layoutConstraint="bottom"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <DataPilot layoutConstraint="right"> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | </DataPilot> |
| | | </Container> |
| | | </View> |
| | | </ViewConfig> |