fzzy-igdss-view/src/main/java/com/fzzy/igds/Depot.view.xml
@@ -16,38 +16,40 @@
    </DataType>
  </Model>
  <View layout="padding:10">
    <ClientEvent name="onReady">// start 通过库区id来加载仓储数据&#xD;
/**&#xD;
 * 通用工具函数:获取URL中的指定参数值&#xD;
 * @param {String} name 要获取的参数名&#xD;
 * @returns {String/null} 参数值(无则返回null)&#xD;
 */&#xD;
function getUrlParam(name) {&#xD;
    // 解析URL的查询字符串(?后面的部分)&#xD;
    var search = window.location.search.substring(1);&#xD;
    // 分割成键值对数组&#xD;
    var params = search.split(&quot;&amp;&quot;);&#xD;
    for (var i = 0; i &lt; params.length; i++) {&#xD;
        var pair = params[i].split(&quot;=&quot;);&#xD;
        // 解码参数值(处理中文/特殊字符)&#xD;
        if (decodeURIComponent(pair[0]) === name) {&#xD;
            return decodeURIComponent(pair[1] || &quot;&quot;);&#xD;
        }&#xD;
    }&#xD;
    return null;&#xD;
};  &#xD;
&#xD;
&#xD;
    <ClientEvent name="onReady">&#xD;
&#xD;
/**&#xD;
 * 查询&#xD;
 */&#xD;
query = function(){&#xD;
   //通过库区id来加载仓储数据&#xD;
   var parentId = getUrlParam(&quot;parentId&quot;);&#xD;
   var parentId = &quot;${request.getParameter('parentId')}&quot;;&#xD;
   view.get(&quot;#dataSetdepot&quot;).set(&quot;parameter&quot;,{parentId: parentId}).flushAsync();&#xD;
};&#xD;query();&#xD;
&#xD;
&#xD;
showDlg=function(){&#xD;
   var select = view.get(&quot;#dataGridDepot&quot;).get(&quot;selection&quot;);&#xD;
   if(select){&#xD;
       view.get(&quot;#depotdialog&quot;).show();;&#xD;
   }else{&#xD;
        $notify(&quot;请先选择数据……&quot;);&#xD;
   }&#xD;
};&#xD;
&#xD;
renderId = function(arg){&#xD;
    var txt = arg.data.getText(&quot;id&quot;);&#xD;
    if(!txt) return true;&#xD;
    var htm = &quot;&lt;a href='javascript:;' onClick='showDlg()' >&quot;+txt+&quot;&lt;/a>&quot;;&#xD;
    arg.dom.innerHTML = htm;&#xD;
}&#xD;
&#xD;
renderName = function(arg){&#xD;
    var txt = arg.data.getText(&quot;name&quot;);&#xD;
    if(!txt) return true;&#xD;
    var htm = &quot;&lt;a href='javascript:;' onClick='showDlg()' >&quot;+txt+&quot;&lt;/a>&quot;;&#xD;
    arg.dom.innerHTML = htm;&#xD;
}
</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
    <DataSet id="dataSetdepot">
@@ -106,16 +108,6 @@
          <Property name="width">100</Property>
          <Property name="action">ajaxRefreshCache</Property>
        </ToolBarButton>
        <ToolBarButton>
          <ClientEvent name="onClick">var url = &quot;com.fzzy.igds.DepotStore.d&quot;;&#xD;
var panelId = window.frameElement.getAttribute('data-id');
window.parent.$.modal.openTab(&quot;库存管理&quot;, url, false, panelId);</ClientEvent>
          <Property name="caption">库存管理</Property>
          <Property name="iconClass">fa fa-book</Property>
          <Property name="exClassName">btn1</Property>
          <Property name="visible">false</Property>
          <Property name="width">100</Property>
        </ToolBarButton>
      </ToolBar>
      <DataGrid id="dataGridDepot" layoutConstraint="padding:8">
        <ClientEvent name="onDataRowClick">view.get(&quot;#dataGridDepot&quot;).set(&quot;selection&quot;,arg.data);</ClientEvent>
@@ -125,11 +117,13 @@
        <RowSelectorColumn/>
        <RowNumColumn/>
        <DataColumn name="id">
          <ClientEvent name="onRenderCell">renderId(arg);</ClientEvent>
          <Property name="property">id</Property>
          <Property name="align">center</Property>
          <Property name="width">120</Property>
        </DataColumn>
        <DataColumn name="name">
          <ClientEvent name="onRenderCell">renderName(arg);</ClientEvent>
          <Property name="property">name</Property>
          <Property name="align">center</Property>
          <Property name="width">120</Property>
@@ -275,21 +269,6 @@
                <Property name="property">orderNum</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:4">
                <Property name="name">pledgeBank</Property>
                <Property name="property">pledgeBank</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">updateBy</Property>
                <Property name="property">updateBy</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:4">
                <Property name="name">remark</Property>
                <Property name="property">remark</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">updateTime</Property>
                <Property name="property">updateTime</Property>
@@ -344,7 +323,7 @@
          </Children>
        </FieldSet>
        <FieldSet layout="padding:5">
          <Property name="caption">质检信息</Property>
          <Property name="caption">其他信息</Property>
          <Buttons/>
          <Children>
            <AutoForm>
@@ -353,7 +332,27 @@
              <Property name="labelSeparator"> : </Property>
              <Property name="labelAlign">right</Property>
              <Property name="cols">*,*,*,*,*,*,*,*</Property>
              <Property name="labelWidth">80</Property>
              <Property name="labelWidth">100</Property>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">length</Property>
                <Property name="property">length</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">width</Property>
                <Property name="property">width</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">height</Property>
                <Property name="property">height</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">bulkWeight</Property>
                <Property name="property">bulkWeight</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">perWet</Property>
                <Property name="property">perWet</Property>
@@ -362,11 +361,6 @@
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">perImpurity</Property>
                <Property name="property">perImpurity</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
                <Property name="name">bulkWeight</Property>
                <Property name="property">bulkWeight</Property>
                <Editor/>
              </AutoFormElement>
              <AutoFormElement layoutConstraint="colSpan:2">
@@ -391,7 +385,7 @@
    </UpdateAction>
    <AjaxAction id="deleteAjaxAction">
      <Property name="successMessage">删除成功</Property>
      <Property name="service">depotPR#deletedepot</Property>
      <Property name="service">depotPR#deleteDepot</Property>
      <Property name="executingMessage">正在删除</Property>
    </AjaxAction>
    <AjaxAction id="ajaxRefreshCache">