| | |
| | | <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> |
| | |
| | | <Property name="dataType">Double</Property> |
| | | <Property name="label">纬度</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="contact"> |
| | | <Property></Property> |
| | | <Property name="label">监管联系人</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="contactTel"> |
| | | <Property></Property> |
| | | <Property name="label">监管联系电话</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="remark"> |
| | | <Property></Property> |
| | | <Property name="label">备注说明</Property> |
| | |
| | | <Property name="label">更新人</Property> |
| | | <Property name="readOnly">true</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="imgId"> |
| | | <PropertyDef name="imgPath"> |
| | | <Property></Property> |
| | | <Property name="label">鸟瞰图id</Property> |
| | | <Property name="label">图路径</Property> |
| | | </PropertyDef> |
| | | <PropertyDef name="imgName"> |
| | | <Property></Property> |
| | |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onClick">/**
 |
| | | <ClientEvent name="onClick"> |
| | | /**
 |
| | | * 预览图片
 |
| | | */
 |
| | | showImg = function(){
 |
| | | var cur = view.get("#dsMain.data:#");
 |
| | | var imgName = cur.get("imgId");
 |
| | | var imgName = cur.get("imgName");
 |
| | | if(!imgName){
 |
| | | $alert("没有上传视频信息,无法预览。");
 |
| | | $alert("没有上传鸟瞰图信息,无法预览。");
 |
| | | return;
 |
| | | }
 |
| | | var id = cur.get("id");
 |
| | | var imgPath = cur.get("imgPath");
 |
| | | 
 |
| | | view.get("#iFrameImg").set("path", "./basic/file/dept-img?id=" + id);
 |
| | | view.get("#iFrameImg").set("path", "/file/dept-img?imgPath=" + imgPath);
 |
| | | 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="dataProvider">deptPR#getDeptByUserType</Property> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | <Property name="loadMode">manual</Property> |
| | | </DataSet> |
| | | <Container> |
| | | <Property name="className">c-param</Property> |
| | |
| | | <ClientEvent name="onClick">view.get("#dsMain").flushAsync();
 |
| | | </ClientEvent> |
| | | <Property name="caption">刷新</Property> |
| | | <Property name="exClassName">btn-q2</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="width">100</Property> |
| | | <Property name="iconClass">fa fa-refresh</Property> |
| | | </ToolBarButton> |
| | |
| | | <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">center</Property> |
| | | <Property name="align">left</Property> |
| | | </DataColumn> |
| | | <DataColumn name="kqcq"> |
| | | <Property name="property">kqcq</Property> |
| | | <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> |
| | | <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">1200</Property> |
| | | <Property name="width">65%</Property> |
| | | <Property name="closeable">false</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | |
| | | view.get("#dialogMain").hide();
 |
| | | }
 |
| | | });</ClientEvent> |
| | | <Property name="caption">确定</Property> |
| | | <Property name="caption">保存</Property> |
| | | <Property name="iconClass">fa fa-check-circle</Property> |
| | | <Property name="exClassName">btn1</Property> |
| | | <Property name="iconClass">fa fa-check</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | <Button> |
| | | <ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
 |
| | | self.get("parent").hide();</ClientEvent> |
| | | <Property name="caption">取消</Property> |
| | | <Property name="exClassName">btn3</Property> |
| | | <Property name="iconClass">fa fa-times</Property> |
| | | <Property name="iconClass">fa fa-times-circle</Property> |
| | | <Property name="width">120</Property> |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | |
| | | <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> |
| | |
| | | <Container> |
| | | <Button layoutConstraint="left"> |
| | | <Property name="action">uploadFileImg</Property> |
| | | <Property name="caption">鸟瞰图上传...</Property> |
| | | <Property name="caption">鸟瞰图上传</Property> |
| | | <Property name="exClassName">btn2</Property> |
| | | <Property name="iconClass">fa fa-cloud-upload</Property> |
| | | </Button> |
| | | <Label layoutConstraint="left"> |
| | | <Property name="width">10px</Property> |
| | | </Label> |
| | | <Button layoutConstraint="left"> |
| | | <ClientEvent name="onClick">showImg();</ClientEvent> |
| | | <Property name="caption">鸟瞰图预览</Property> |
| | | <Property name="exClassName">btn4</Property> |
| | | <Property name="iconClass">fa fa-picture-o</Property> |
| | | </Button> |
| | | </Container> |
| | | <Link> |
| | | <Property name="href">http://api.map.baidu.com/lbsapi/getpoint/</Property> |
| | | <Property name="href">https://lbs.amap.com/tools/picker</Property> |
| | | <Property name="target">_blank</Property> |
| | | <Property name="style"> |
| | | <Property name="padding-left">150px</Property> |
| | | </Property> |
| | | <Property name="text">帮助:点击坐标位置拾取</Property> |
| | | </Link> |
| | | <AutoFormElement layoutConstraint="colSpan:3"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <AutoFormElement> |
| | | <Property name="name">contact</Property> |
| | | <Property name="property">contact</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">contactTel</Property> |
| | | <Property name="property">contactTel</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | |
| | | <Tools/> |
| | | </Dialog> |
| | | <Dialog id="dialogImg"> |
| | | <Property name="width">1000</Property> |
| | | <Property name="height">640</Property> |
| | | <Property name="width">55%</Property> |
| | | <Property name="height">65%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="caption">鸟瞰图预览</Property> |
| | | <Buttons/> |
| | |
| | | </Container> |
| | | </CustomDropDown> |
| | | <UploadAction id="uploadFileImg"> |
| | | <ClientEvent name="onFileUploaded">var imgId = arg.returnValue;
 |
| | | <ClientEvent name="onFileUploaded">var fileId = arg.returnValue;
 |
| | | var data = view.get("#dsMain.data:#");
 |
| | | data.set("imgId",imgId);
 |
| | | data.set("imgPath",fileId);
 |
| | | data.set("imgName",arg.file.name);</ClientEvent> |
| | | <Property name="fileResolver">fileUploadManage#imgFile</Property> |
| | | <Property name="maxFileSize">50MB</Property> |