| | |
| | | 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;
 |
| | | }</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> |
| | |
| | | <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"> |