| | |
| | | <Property></Property> |
| | | <Property name="label">库区代码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="tykqbm"> |
| | | <Property></Property> |
| | | <Property name="label">国家统一库区编码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="hwdm"> |
| | | <Property></Property> |
| | | <Property name="label">货位代码</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lsxzdm"> |
| | | <Property></Property> |
| | | <Property name="label">粮食性质代码</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("apiTriggerService#trigger").getResult("LSXZ")}</Property> |
| | | <Property name="keyProperty">code</Property> |
| | | <Property name="valueProperty">name</Property> |
| | | </Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="id"> |
| | | <Property name="dataType">Integer</Property> |
| | | <Property name="dataType">String</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="lspzdm"> |
| | | <Property></Property> |
| | |
| | | <Property name="label">月份</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="qcsl"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">期初数量(公斤)</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bqsrsl"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">本期收入数量(公斤)</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="bqzcsl"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">本期支出数量(公斤)</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="qmye"> |
| | | <Property name="dataType">double</Property> |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">期末数量(公斤)</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="yjbz"> |
| | |
| | | </ToolBarLabel> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var query = view.get("#dsQuery").getData();
 |
| | | view.get("#dsMain").set("parameter",query).flushAsync();</ClientEvent> |
| | | view.get("#dsMain").set("parameter",query).flushAsync();</ClientEvent> |
| | | <Property name="caption">查询</Property> |
| | | <Property name="iconClass">fa fa-search</Property> |
| | | <Property name="width">100</Property> |
| | |
| | | </ToolBarButton> |
| | | <ToolBarButton id="btnAdd"> |
| | | <ClientEvent name="onClick">view.get("#dsMain").insert();
 |
| | | view.get("#dialogMain").show();</ClientEvent> |
| | | view.get("#dialogMain").show();</ClientEvent> |
| | | <Property name="caption">新增</Property> |
| | | <Property name="iconClass">fa fa-plus</Property> |
| | | <Property name="width">100</Property> |
| | |
| | | </ToolBarButton> |
| | | <ToolBarButton id="btnUpdate"> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | if(cur){
 |
| | | view.get("#dialogMain").show();
 |
| | | }</ClientEvent> |
| | | if(cur){
 |
| | | view.get("#dialogMain").show();
 |
| | | }</ClientEvent> |
| | | <Property name="caption">修改</Property> |
| | | <Property name="iconClass">fa fa-pencil</Property> |
| | | <Property name="width">100</Property> |
| | |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | } else{
 |
| | | cur.set("czbz","d")
 |
| | | }
 |
| | | });
 |
| | | </ClientEvent> |
| | | view.get("#ajaxDelUpdate").set("parameter",cur).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | } else{
 |
| | | cur.set("czbz","d")
 |
| | | }
 |
| | | });
 |
| | | </ClientEvent> |
| | | <Property name="caption">标记删除</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | <Property name="exClassName">toolbar-button-warn</Property> |
| | |
| | | </ToolBarButton> |
| | | <ToolBarButton id="btnDel"> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | } else{
 |
| | | cur.remove();
 |
| | | }
 |
| | | });
 |
| | | </ClientEvent> |
| | | view.get("#ajaxDel").set("parameter",cur).execute(function(result){
 |
| | | if(result){
 |
| | | $alert(result);
 |
| | | } else{
 |
| | | cur.remove();
 |
| | | }
 |
| | | });
 |
| | | </ClientEvent> |
| | | <Property name="caption">直接删除</Property> |
| | | <Property name="iconClass">fa fa-minus</Property> |
| | | <Property name="exClassName">toolbar-button-warn</Property> |
| | |
| | | </ToolBarButton> |
| | | <ToolBarButton> |
| | | <ClientEvent name="onClick">var select = view.get("#dgMain").get("selection");
 |
| | | if(select && select.length > 0){
 |
| | | view.get("#ajaxPush").set("parameter",select).execute(function(result){
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | if(select && select.length > 0){
 |
| | | view.get("#ajaxPush").set("parameter",select).execute(function(result){
 |
| | | view.get("#dsMain").flushAsync();
 |
| | | $notify(result);
 |
| | | });
 |
| | | }else{
 |
| | | $alert("请勾选上报数据!");
 |
| | | }
 |
| | | </ClientEvent> |
| | | });
 |
| | | }else{
 |
| | | $alert("请勾选上报数据!");
 |
| | | }
 |
| | | </ClientEvent> |
| | | <Property name="caption">手动上传</Property> |
| | | <Property name="iconClass">fa fa-hand-o-up</Property> |
| | | <Property name="exClassName">toolbar-button-push</Property> |
| | |
| | | </RowSelectorColumn> |
| | | <DataColumn name="kqdm"> |
| | | <Property name="property">kqdm</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">240</Property> |
| | | </DataColumn> |
| | | <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> |
| | | <Property name="width">80</Property> |
| | | </DataColumn> |
| | | <DataColumn name="yf"> |
| | | <Property name="property">yf</Property> |
| | | <Property name="width">80</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> |
| | | </DataColumn> |
| | | <DataColumn name="zhgxsj"> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="czbz"> |
| | | <Property name="property">czbz</Property> |
| | | <Property name="width">120</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zhgxsj"> |
| | | <Property name="property">zhgxsj</Property> |
| | | <Property name="width">160</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | <ToolBar layoutConstraint="bottom"> |
| | |
| | | <Buttons> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | view.get("#updateSave").execute(function(){
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | view.get("#updateSave").execute(function(){
 |
| | | self.get("parent").hide();
 |
| | | });</ClientEvent> |
| | | <Property name="caption">保存修改</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="exClassName">toolbar-button</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">var cur = view.get("#dgMain").getCurrentItem();
 |
| | | self.get("parent").hide();
 |
| | | if(cur) cur.cancel();</ClientEvent> |
| | | self.get("parent").hide();
 |
| | | if(cur) cur.cancel();</ClientEvent> |
| | | <Property name="caption">取消修改</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="exClassName">toolbar-button-warn</Property> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">tykqbm</Property> |
| | | <Property name="property">tykqbm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">lspzdm</Property> |
| | | <Property name="property">lspzdm</Property> |
| | | <Editor/> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">hwdm</Property> |
| | | <Property name="property">hwdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">lsxzdm</Property> |
| | | <Property name="property">lsxzdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label> |
| | | <Property name="text">说明:上海使用(货位代码、粮食性质代码)</Property> |
| | | <Property name="style"> |
| | | <Property name="color">blue</Property> |
| | | </Property> |
| | | </Label> |
| | | <AutoFormElement> |
| | | <Property name="name">yf</Property> |
| | | <Property name="property">yf</Property> |
| | | <Editor/> |