| | |
| | | </DataType> |
| | | </Model> |
| | | <View layout="padding:10"> |
| | | <ClientEvent name="onReady">/**
 |
| | | * 查看详情
 |
| | | * @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.Dept.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("dwmc");
 |
| | | 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">companyPR#getData</Property> |
| | | <Property name="dataProvider">companyPR#getCompanyByUserType</Property> |
| | | <Property name="dataType">[dtMain]</Property> |
| | | </DataSet> |
| | | <Container> |
| | |
| | | <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">120</Property> |
| | | </DataColumn> |
| | | <DataColumn name="dwmc"> |
| | | <Property name="property">dwmc</Property> |
| | | <ClientEvent name="onRenderCell">renderName(arg);</ClientEvent> |
| | | </DataColumn> |
| | | <DataColumn name="dwdm"> |
| | | <Property name="property">dwdm</Property> |
| | |
| | | <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="width">1200</Property> |
| | | <Property name="caption">收储公司信息</Property> |
| | | <Dialog id="dialogMain" layout="regionPadding:8"> |
| | | <Property name="closeable">false</Property> |
| | | <Property name="caption">收储公司信息</Property> |
| | | <Property name="width">80%</Property> |
| | | <Property name="iconClass">fa fa-tasks</Property> |
| | | <Property name="height">90%</Property> |
| | | <Buttons> |
| | | <Button id="btnOk"> |
| | | <ClientEvent name="onClick">view.get("#uaSave").execute(function(result){
 |
| | |
| | | </Button> |
| | | </Buttons> |
| | | <Children> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">dwmc</Property> |
| | | <Property name="property">dwmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">id</Property> |
| | | <Property name="property">id</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwdm</Property> |
| | | <Property name="property">dwdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwlx</Property> |
| | | <Property name="property">dwlx</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwzt</Property> |
| | | <Property name="property">dwzt</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zcrq</Property> |
| | | <Property name="property">zcrq</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zczb</Property> |
| | | <Property name="property">zczb</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zcze</Property> |
| | | <Property name="property">zcze</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">fddbr</Property> |
| | | <Property name="property">fddbr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">frsfzh</Property> |
| | | <Property name="property">frsfzh</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">frlxfs</Property> |
| | | <Property name="property">frlxfs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">qylxr</Property> |
| | | <Property name="property">qylxr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bgdh</Property> |
| | | <Property name="property">bgdh</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dzyx</Property> |
| | | <Property name="property">dzyx</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">zcdz</Property> |
| | | <Property name="property">zcdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">yzbm</Property> |
| | | <Property name="property">yzbm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">qygfwzdz</Property> |
| | | <Property name="property">qygfwzdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">czhm</Property> |
| | | <Property name="property">czhm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">xzqhmc</Property> |
| | | <Property name="property">xzqhmc</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">xzqhdm</Property> |
| | | <Property name="property">xzqhdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqs</Property> |
| | | <Property name="property">kqs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jd</Property> |
| | | <Property name="property">jd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createBy</Property> |
| | | <Property name="property">createBy</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">createTime</Property> |
| | | <Property name="property">createTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">wd</Property> |
| | | <Property name="property">wd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateBy</Property> |
| | | <Property name="property">updateBy</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="property">updateTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Link> |
| | | <Property name="href">http://api.map.baidu.com/lbsapi/getpoint/</Property> |
| | | <Property name="target">_blank</Property> |
| | | <Property name="style"> |
| | | <Property name="padding-left">150px</Property> |
| | | </Property> |
| | | <Property name="text">帮助:点击坐标位置拾取</Property> |
| | | </Link> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | <Container> |
| | | <AutoForm> |
| | | <Property name="dataSet">dsMain</Property> |
| | | <Property name="cols">*,*,*</Property> |
| | | <Property name="labelAlign">right</Property> |
| | | <Property name="labelSeparator"> : </Property> |
| | | <Property name="labelWidth">120</Property> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">dwmc</Property> |
| | | <Property name="property">dwmc</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">id</Property> |
| | | <Property name="property">id</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwdm</Property> |
| | | <Property name="property">dwdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwlx</Property> |
| | | <Property name="property">dwlx</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dwzt</Property> |
| | | <Property name="property">dwzt</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zcrq</Property> |
| | | <Property name="property">zcrq</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zczb</Property> |
| | | <Property name="property">zczb</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">zcze</Property> |
| | | <Property name="property">zcze</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">fddbr</Property> |
| | | <Property name="property">fddbr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">frsfzh</Property> |
| | | <Property name="property">frsfzh</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">frlxfs</Property> |
| | | <Property name="property">frlxfs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">qylxr</Property> |
| | | <Property name="property">qylxr</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">bgdh</Property> |
| | | <Property name="property">bgdh</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">dzyx</Property> |
| | | <Property name="property">dzyx</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">zcdz</Property> |
| | | <Property name="property">zcdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">yzbm</Property> |
| | | <Property name="property">yzbm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement layoutConstraint="colSpan:2"> |
| | | <Property name="name">qygfwzdz</Property> |
| | | <Property name="property">qygfwzdz</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">czhm</Property> |
| | | <Property name="property">czhm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">xzqhmc</Property> |
| | | <Property name="property">xzqhmc</Property> |
| | | <Property name="trigger">ddFoodOrigin</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">xzqhdm</Property> |
| | | <Property name="property">xzqhdm</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">kqs</Property> |
| | | <Property name="property">kqs</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">jd</Property> |
| | | <Property name="property">jd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">wd</Property> |
| | | <Property name="property">wd</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <AutoFormElement> |
| | | <Property name="name">updateTime</Property> |
| | | <Property name="property">updateTime</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | <Link> |
| | | <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:2"> |
| | | <Property name="name">remark</Property> |
| | | <Property name="property">remark</Property> |
| | | <Editor/> |
| | | </AutoFormElement> |
| | | </AutoForm> |
| | | </Container> |
| | | </Children> |
| | | <Tools/> |
| | | </Dialog> |