¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ViewConfig> |
| | | <Arguments/> |
| | | <Context/> |
| | | <Model> |
| | | <DataType name="dtMain"> |
| | | <Property name="creationType">com.ld.igds.models.DepotBookStore</Property> |
| | | <PropertyDef name="id"> |
| | | <Property></Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">ç»ç»ç¼ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqdm"> |
| | | <Property></Property> |
| | | <Property name="label">åºåºä»£ç </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lspzdm"> |
| | | <Property></Property> |
| | | <Property name="label">ç²®é£åç§ä»£ç </Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("FOOD_VARIETY_")}</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="nd"> |
| | | <Property></Property> |
| | | <Property name="label">年度</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="yf"> |
| | | <Property></Property> |
| | | <Property name="label">æä»½</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">key</Property> |
| | | <Property name="valueProperty">value</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="qcsl"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æåæ°é</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bqsrsl"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æ¬ææ¶å
¥æ°é</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">#0.000KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bqzcsl"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">æ¬ææ¯åºæ°é</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">#0.000KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="qmye"> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">ææ«æ°é</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="displayFormat">#0.000KG</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="yjbz"> |
| | | <Property name="dataType">Integer</Property> |
| | | <Property name="label">æç»æ å¿</Property> |
| | | <Property name="required">true</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">key</Property> |
| | | <Property name="valueProperty">value</Property> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="key">0</Property> |
| | | <Property name="value">æç»</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">1</Property> |
| | | <Property name="value">æªæç»</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="ywrq"> |
| | | <Property name="dataType">Date</Property> |
| | | <Property name="label">ä¸å¡æ¥æ</Property> |
| | | <Property name="required">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="czbz"> |
| | | <Property></Property> |
| | | <Property name="label">æä½æ å¿</Property> |
| | | <Property name="mapping"> |
| | | <Property name="keyProperty">key</Property> |
| | | <Property name="valueProperty">value</Property> |
| | | <Property name="mapValues"> |
| | | <Collection> |
| | | <Entity> |
| | | <Property name="key">i</Property> |
| | | <Property name="value">æ°å¢æ°æ®</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">u</Property> |
| | | <Property name="value">ä¿®æ¹æ°æ®</Property> |
| | | </Entity> |
| | | <Entity> |
| | | <Property name="key">d</Property> |
| | | <Property name="value">å 餿°æ®</Property> |
| | | </Entity> |
| | | </Collection> |
| | | </Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="zhgxsj"> |
| | | <Property name="dataType">DateTime</Property> |
| | | <Property name="label">æåæ´æ°æ¶é´</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | <DataType name="dtParam"> |
| | | <PropertyDef name="foodVariety"> |
| | | <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="year"> |
| | | <Property name="label">年度</Property> |
| | | </PropertyDef> |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:5;regionPadding:5"> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dsMain"> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="dataProvider">depotBookStorePR#pageList</Property> |
| | | <Property name="pageSize">15</Property> |
| | | </DataSet> |
| | | <DataSet id="dsParam"> |
| | | <ClientEvent name="onReady">self.insert({})
 |
| | | </ClientEvent> |
| | | <Property name="dataType">[dtParam]</Property> |
| | | </DataSet> |
| | | <Container layout="regionPadding:10" layoutConstraint="top"> |
| | | <Property name="exClassName">bg-color</Property> |
| | | <Property name="height">55</Property> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="text">èåæ ï¼</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsMain").insert();
 |
| | | view.get("#dialogMain").show();</ClientEvent> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | <Property name="caption">æ°å¢</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var dialog= view.get("#dsMain.data:#");
 |
| | | if(dialog){
 |
| | | view.get("#dialogMain").show();
 |
| | | }else{
 |
| | | $alert("请éä¸éè¦ä¿®æ¹çæ°æ®")
 |
| | | }</ClientEvent> |
| | | <Property name="caption">ç¼è¾</Property> |
| | | <Property name="exClassName">btn-warm</Property> |
| | | <Property name="iconClass">fa fa-pencil</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dsMain.data:#");
 |
| | | if(!cur) return;
 |
| | | view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | return;
 |
| | | }else{
 |
| | | cur.remove();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | <Property name="iconClass">fa fa-pencil</Property> |
| | | <Property name="caption">å é¤</Property> |
| | | </Button> |
| | | </Container> |
| | | <Container> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsParam</Property> |
| | | <Property name="cols">*,*,*,*</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">foodVariety</Property> |
| | | <Property name="property">foodVariety</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">year</Property> |
| | | <Property name="property">year</Property> |
| | | <Property name="trigger">defaultYearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Container layout="regionPadding:10"> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">var param = view.get("#dsParam.data:#");
 |
| | | view.get("#dsMain").set("parameter",param).flushAsync();</ClientEvent> |
| | | <Property name="caption">æ¥è¯¢</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | </Button> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">view.get("#dsParam").insert({})</ClientEvent> |
| | | <Property name="caption">éç½®</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | <Property name="exClassName">btn-default</Property> |
| | | </Button> |
| | | </Container> |
| | | </AutoForm> |
| | | <DataGrid id="dgMain"> |
| | | <ClientEvent name="onDataRowDoubleClick">view.get("#dialogMain").show();</ClientEvent> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">true</Property> |
| | | <RowNumColumn/> |
| | | <DataColumn name="lspzdm"> |
| | | <Property name="property">lspzdm</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="nd"> |
| | | <Property name="property">nd</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="yf"> |
| | | <Property name="property">yf</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="qcsl"> |
| | | <Property name="property">qcsl</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bqsrsl"> |
| | | <Property name="property">bqsrsl</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="bqzcsl"> |
| | | <Property name="property">bqzcsl</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="qmye"> |
| | | <Property name="property">qmye</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="yjbz"> |
| | | <Property name="property">yjbz</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="ywrq"> |
| | | <Property name="property">ywrq</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="czbz"> |
| | | <Property name="property">czbz</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zhgxsj"> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | | <Fill/> |
| | | <DataPilot> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="itemCodes">pageSize,pages</Property> |
| | | </DataPilot> |
| | | </ToolBar> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="caption">åºåä¿¡æ¯</Property> |
| | | <Property name="width">800</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
 |
| | | view.get("#uaAction").execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | }else{
 |
| | | self.get("parent").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">ä¿å</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">btn-normal</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">åæ¶</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="exClassName">btn-warn</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="readOnly">false</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="cols">*,*</Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">lspzdm</Property> |
| | | <Property name="property">lspzdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">nd</Property> |
| | | <Property name="property">nd</Property> |
| | | <Property name="trigger">defaultYearDropDown</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">yf</Property> |
| | | <Property name="property">yf</Property> |
| | | <Property name="trigger">monthDropDown1</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">qcsl</Property> |
| | | <Property name="property">qcsl</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bqsrsl</Property> |
| | | <Property name="property">bqsrsl</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bqzcsl</Property> |
| | | <Property name="property">bqzcsl</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">qmye</Property> |
| | | <Property name="property">qmye</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">yjbz</Property> |
| | | <Property name="property">yjbz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">ywrq</Property> |
| | | <Property name="property">ywrq</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">czbz</Property> |
| | | <Property name="property">czbz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zhgxsj</Property> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |
| | | <UpdateAction id="uaAction"> |
| | | <Property name="successMessage">æ§è¡æå!</Property> |
| | | <Property name="dataResolver">depotBookStorePR#saveData</Property> |
| | | <UpdateItem> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="dataPath">[#current]</Property> |
| | | </UpdateItem> |
| | | </UpdateAction> |
| | | <AjaxAction id="ajaxDel"> |
| | | <Property name="confirmMessage">ç¡®å®è¦å é¤åï¼</Property> |
| | | <Property name="service">depotBookStorePR#delData</Property> |
| | | </AjaxAction> |
| | | <MonthDropDown id="monthDropDown1"> |
| | | <ClientEvent name="onClose">var date = arg.selectedValue+1;
 |
| | | if(date<10){
 |
| | | arg.selectedValue="0"+date
 |
| | | }else if(date>=10){
 |
| | | arg.selectedValue=date
 |
| | | }
 |
| | | </ClientEvent> |
| | | </MonthDropDown> |
| | | </View> |
| | | </ViewConfig> |