| | |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">
 |
| | | 
 |
| | | /**
 |
| | | * 查询
 |
| | | */
 |
| | | query = function(){
 |
| | | view.get("#dataSetdepot").flushAsync();
 |
| | | }
</ClientEvent> |
| | | //通过库区id来加载仓储数据
 |
| | | var parentId = "${request.getParameter('parentId')}";
 |
| | | view.get("#dataSetdepot").set("parameter",{parentId: parentId}).flushAsync();
 |
| | | };
query();
 |
| | | 
 |
| | | 
 |
| | | showDlg=function(){
 |
| | | var select = view.get("#dataGridDepot").get("selection");
 |
| | | if(select){
 |
| | | view.get("#depotdialog").show();;
 |
| | | }else{
 |
| | | $notify("请先选择数据……");
 |
| | | }
 |
| | | };
 |
| | | 
 |
| | | renderId = function(arg){
 |
| | | var txt = arg.data.getText("id");
 |
| | | if(!txt) return true;
 |
| | | var htm = "<a href='javascript:;' onClick='showDlg()' >"+txt+"</a>";
 |
| | | arg.dom.innerHTML = htm;
 |
| | | }
 |
| | | 
 |
| | | </ClientEvent> |
| | | <Property name="packages">font-awesome,css-common</Property> |
| | | <DataSet id="dataSetdepot"> |
| | | <Property name="dataProvider">depotPR#getData</Property> |
| | | <Property name="dataType">[dtDepot]</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <DataSet id="dataSetUser"> |
| | | <Property name="dataType">[dataTypeUser]</Property> |
| | |
| | | <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> |
| | |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">仓库信息</Property> |
| | | <Property name="width">80%</Property> |
| | | <Property name="height">82%</Property> |
| | | <Property name="height">90%</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOK"> |
| | |
| | | <Property name="property">deptId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storageMax</Property> |
| | | <Property name="property">storageMax</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storageMax</Property> |
| | | <Property name="property">storageMax</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">storeType</Property> |
| | | <Property name="property">storeType</Property> |