| | |
| | | <Property name="label">库区编码</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="parentId"> |
| | | <Property></Property> |
| | | <Property name="label">收储公司</Property> |
| | | <Property name="mapping"> |
| | | <Property name="mapValues">${dorado.getDataProvider("companyPR#getData").getResult()}</Property> |
| | | <Property name="keyProperty">id</Property> |
| | | <Property name="valueProperty">dwmc</Property> |
| | | </Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="companyId"> |
| | | <Property></Property> |
| | | <Property name="label">组织编码</Property> |
| | |
| | | </PropertyDef> |
| | | <PropertyDef name="xzqhmc"> |
| | | <Property></Property> |
| | | <Property name="label">区划名称</Property> |
| | | <Property name="label">所在区县</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="kqcq"> |
| | | <Property></Property> |
| | |
| | | view.get("#dialogImg").show();
 |
| | | 
 |
| | | };</ClientEvent> |
| | | <ClientEvent name="onReady">var parentId = "${request.getParameter('parentId')}";
 |
| | | view.get("#dsMain").set("parameter",{parentId: parentId}).flushAsync();
 |
| | | 
 |
| | | /**
 |
| | | * 查看详情
 |
| | | * @param {String/Number} manualId 手动传入的id值(可选)
 |
| | | */
 |
| | | detail = function(){
 |
| | | var cur = view.get("#dgMain").get("selection");
 |
| | | if (cur) {
 |
| | | var id = cur.get("id");
 |
| | | var url = "/com.fzzy.igds.Depot.d?parentId="+ id;
 |
| | | window.$openTab("库区管理", url);
 |
| | | }else {
 |
| | | $notify("请先选择数据……");
 |
| | | } 
 |
| | | };
 |
| | | 
 |
| | | 
 |
| | | showDlg=function(){
 |
| | | var select = view.get("#dgMain").get("selection");
 |
| | | if(select){
 |
| | | view.get("#dialogMain").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;
 |
| | | } |
| | | renderName = function(arg){
 |
| | | var txt = arg.data.getText("kqmc");
 |
| | | 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="dsMain"> |
| | | <Property name="dataProvider">deptPR#getData</Property> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</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">160</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqmc"> |
| | | <ClientEvent name="onRenderCell">renderName(arg);</ClientEvent> |
| | | <Property name="property">kqmc</Property> |
| | | <Property name="align">left</Property> |
| | | </DataColumn> |
| | | <DataColumn name="parentId"> |
| | | <Property name="property">parentId</Property> |
| | | <Property name="align">left</Property> |
| | | </DataColumn> |
| | | <DataColumn name="xzqhmc"> |
| | | <Property name="property">xzqhmc</Property> |
| | | <Property name="align">center</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqcq"> |
| | | <Property name="property">kqcq</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="yxcr"> |
| | | <Property name="property">yxcr</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">180</Property> |
| | | </DataColumn> |
| | | <DataColumn name="zdmj"> |
| | | <Property name="property">zdmj</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">180</Property> |
| | | </DataColumn> |
| | |
| | | <Property name="align">center</Property> |
| | | <Property name="width">160</Property> |
| | | </DataColumn> |
| | | <DataColumn> |
| | | <ClientEvent name="onRenderCell">arg.dom.innerHTML = "<a href='javascript:;' onClick='detail()' class='a-btn1'>查看仓库</a>";</ClientEvent> |
| | | <Property name="width">160</Property> |
| | | <Property name="caption">操作</Property> |
| | | <Property name="align">center</Property> |
| | | <Property name="width">120</Property> |
| | | <Editor/> |
| | | </DataColumn> |
| | | </DataGrid> |
| | | </Container> |
| | | <Dialog id="dialogMain"> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">库区信息</Property> |
| | | <Property name="width">70%</Property> |
| | | <Property name="width">65%</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">kqdz</Property> |
| | | <Property name="property">kqdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqcq</Property> |
| | | <Property name="property">kqcq</Property> |
| | | <Property name="name">parentId</Property> |
| | | <Property name="property">parentId</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Property name="property">yxcr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zdmj</Property> |
| | | <Property name="property">zdmj</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">kqdz</Property> |
| | | <Property name="property">kqdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | <Property name="property">xzqhdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Label> |
| | | <Property name="text"></Property> |
| | | </Label> |
| | | <AutoFormElement> |
| | | <Property name="name">createBy</Property> |
| | | <Property name="property">createBy</Property> |
| | | <Property name="name">zdmj</Property> |
| | | <Property name="property">zdmj</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | |
| | | </Property> |
| | | <Property name="text">帮助:点击坐标位置拾取</Property> |
| | | </Link> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Children> |
| | | <Tools/> |