czt
2024-06-28 4603da77459b23291191b52a35c5c8ccb9ac60e3
src/main/java/com/fzzy/api/view/Api1211.view.xml
@@ -26,6 +26,10 @@
        <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>
@@ -40,7 +44,7 @@
        </Property>
      </PropertyDef>
      <PropertyDef name="id">
        <Property name="dataType">Integer</Property>
        <Property name="dataType">String</Property>
      </PropertyDef>
      <PropertyDef name="lspzdm">
        <Property></Property>
@@ -60,19 +64,19 @@
        <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">
@@ -134,7 +138,7 @@
      </ToolBarLabel>
      <ToolBarButton>
        <ClientEvent name="onClick">var query = view.get(&quot;#dsQuery&quot;).getData();&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,query).flushAsync();</ClientEvent>
          view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,query).flushAsync();</ClientEvent>
        <Property name="caption">查询</Property>
        <Property name="iconClass">fa fa-search</Property>
        <Property name="width">100</Property>
@@ -142,7 +146,7 @@
      </ToolBarButton>
      <ToolBarButton id="btnAdd">
        <ClientEvent name="onClick">view.get(&quot;#dsMain&quot;).insert();&#xD;
view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
          view.get(&quot;#dialogMain&quot;).show();</ClientEvent>
        <Property name="caption">新增</Property>
        <Property name="iconClass">fa fa-plus</Property>
        <Property name="width">100</Property>
@@ -151,9 +155,9 @@
      </ToolBarButton>
      <ToolBarButton id="btnUpdate">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
if(cur){&#xD;
   view.get(&quot;#dialogMain&quot;).show();&#xD;
}</ClientEvent>
          if(cur){&#xD;
          view.get(&quot;#dialogMain&quot;).show();&#xD;
          }</ClientEvent>
        <Property name="caption">修改</Property>
        <Property name="iconClass">fa fa-pencil</Property>
        <Property name="width">100</Property>
@@ -162,14 +166,14 @@
      </ToolBarButton>
      <ToolBarButton>
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
   if(result){&#xD;
      $alert(result);&#xD;
   } else{&#xD;
      cur.set(&quot;czbz&quot;,&quot;d&quot;)&#xD;
   }&#xD;
});&#xD;
</ClientEvent>
          view.get(&quot;#ajaxDelUpdate&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
          if(result){&#xD;
          $alert(result);&#xD;
          } else{&#xD;
          cur.set(&quot;czbz&quot;,&quot;d&quot;)&#xD;
          }&#xD;
          });&#xD;
        </ClientEvent>
        <Property name="caption">标记删除</Property>
        <Property name="iconClass">fa fa-minus</Property>
        <Property name="exClassName">toolbar-button-warn</Property>
@@ -177,14 +181,14 @@
      </ToolBarButton>
      <ToolBarButton id="btnDel">
        <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
   if(result){&#xD;
      $alert(result);&#xD;
   } else{&#xD;
      cur.remove();&#xD;
   }&#xD;
});&#xD;
</ClientEvent>
          view.get(&quot;#ajaxDel&quot;).set(&quot;parameter&quot;,cur).execute(function(result){&#xD;
          if(result){&#xD;
          $alert(result);&#xD;
          } else{&#xD;
          cur.remove();&#xD;
          }&#xD;
          });&#xD;
        </ClientEvent>
        <Property name="caption">直接删除</Property>
        <Property name="iconClass">fa fa-minus</Property>
        <Property name="exClassName">toolbar-button-warn</Property>
@@ -193,15 +197,15 @@
      </ToolBarButton>
      <ToolBarButton>
        <ClientEvent name="onClick">var select = view.get(&quot;#dgMain&quot;).get(&quot;selection&quot;);&#xD;
if(select &amp;&amp; select.length > 0){&#xD;
   view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
      view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
          if(select &amp;&amp; select.length > 0){&#xD;
          view.get(&quot;#ajaxPush&quot;).set(&quot;parameter&quot;,select).execute(function(result){&#xD;
          view.get(&quot;#dsMain&quot;).flushAsync();&#xD;
          $notify(result);&#xD;
   });&#xD;
}else{&#xD;
   $alert(&quot;请勾选上报数据!&quot;);&#xD;
}&#xD;
</ClientEvent>
          });&#xD;
          }else{&#xD;
          $alert(&quot;请勾选上报数据!&quot;);&#xD;
          }&#xD;
        </ClientEvent>
        <Property name="caption">手动上传</Property>
        <Property name="iconClass">fa fa-hand-o-up</Property>
        <Property name="exClassName">toolbar-button-push</Property>
@@ -305,17 +309,17 @@
      <Buttons>
        <Button>
          <ClientEvent name="onClick">var cur = view.get(&quot;#dgMain&quot;).getCurrentItem();&#xD;
view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
   self.get(&quot;parent&quot;).hide();&#xD;
});</ClientEvent>
            view.get(&quot;#updateSave&quot;).execute(function(){&#xD;
            self.get(&quot;parent&quot;).hide();&#xD;
            });</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(&quot;#dgMain&quot;).getCurrentItem();&#xD;
self.get(&quot;parent&quot;).hide();&#xD;
if(cur) cur.cancel();</ClientEvent>
            self.get(&quot;parent&quot;).hide();&#xD;
            if(cur) cur.cancel();</ClientEvent>
          <Property name="caption">取消修改</Property>
          <Property name="iconClass">fa fa-times</Property>
          <Property name="exClassName">toolbar-button-warn</Property>
@@ -335,6 +339,11 @@
            <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/>