Showing
3 changed files
with
147 additions
and
149 deletions
... | @@ -86,8 +86,8 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -86,8 +86,8 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
86 | }); | 86 | }); |
87 | 87 | ||
88 | //行转换 | 88 | //行转换 |
89 | - function getSelectedRow(){ | 89 | + function getSelectedRow(inst){ |
90 | - var row = this.grid.datagrid('getSelected'); | 90 | + var row = inst.grid.datagrid('getSelected'); |
91 | return row?{ | 91 | return row?{ |
92 | actId:row.ACT_ID, | 92 | actId:row.ACT_ID, |
93 | actCode:row.ACT_CODE, | 93 | actCode:row.ACT_CODE, |
... | @@ -109,39 +109,39 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -109,39 +109,39 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
109 | function addWindow(inst){ | 109 | function addWindow(inst){ |
110 | //添加账套详情页面 | 110 | //添加账套详情页面 |
111 | index.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailAdd"}, true, function(){ | 111 | index.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailAdd"}, true, function(){ |
112 | - this.grid.datagrid("reload"); | 112 | + inst.grid.datagrid("reload"); |
113 | }); | 113 | }); |
114 | } | 114 | } |
115 | //编辑页面弹出绑定按钮 | 115 | //编辑页面弹出绑定按钮 |
116 | function editWindow(inst){ | 116 | function editWindow(inst){ |
117 | - var row = getSelectedRow.call(this); | 117 | + var row = getSelectedRow.call(this,inst); |
118 | if(row == null){ | 118 | if(row == null){ |
119 | $.messager.alert(resource.msg_title, resource.msgEditTip); | 119 | $.messager.alert(resource.msg_title, resource.msgEditTip); |
120 | }else{ | 120 | }else{ |
121 | index.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailEdit?actId="+row.actId+"&actCode="+row.actCode}, true, function(){ | 121 | index.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailEdit?actId="+row.actId+"&actCode="+row.actCode}, true, function(){ |
122 | - this.grid.datagrid("reload"); | 122 | + inst.grid.datagrid("reload"); |
123 | }); | 123 | }); |
124 | } | 124 | } |
125 | } | 125 | } |
126 | //删除 | 126 | //删除 |
127 | function deleteData(inst){ | 127 | function deleteData(inst){ |
128 | - var accountSet = getSelectedRow.call(this); | 128 | + var accountSet = getSelectedRow.call(this,inst); |
129 | if(accountSet == null){ | 129 | if(accountSet == null){ |
130 | $.messager.alert(resource.msg_title, resource.msgRemoveTip); | 130 | $.messager.alert(resource.msg_title, resource.msgRemoveTip); |
131 | }else{ | 131 | }else{ |
132 | - if(accountSet.actType==resource.accountset.title.sonAccount){ | 132 | + if(accountSet.actType==resource.title.sonAccount){ |
133 | $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ | 133 | $.messager.confirm(resource.msg_title, resource.confirmDelete, function(r){ |
134 | if(r){ | 134 | if(r){ |
135 | accountSet.enable = ""; | 135 | accountSet.enable = ""; |
136 | $.JSON("./accountSet/delete.json", accountSet, function(result){ | 136 | $.JSON("./accountSet/delete.json", accountSet, function(result){ |
137 | - if(responseUtils(result)){ | 137 | + if($.response(result)){ |
138 | - this.grid.datagrid("reload"); | 138 | + inst.grid.datagrid("reload"); |
139 | } | 139 | } |
140 | }); | 140 | }); |
141 | } | 141 | } |
142 | }); | 142 | }); |
143 | }else{ | 143 | }else{ |
144 | - $.messager.alert(resource.msg_title, resource.accountset.title.overActCntdelt); | 144 | + $.messager.alert(resource.msg_title, resource.title.overActCntdelt); |
145 | } | 145 | } |
146 | } | 146 | } |
147 | } | 147 | } | ... | ... |
1 | -define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], function (resource, Class, base, index){ | 1 | +define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index','lodash'], function (resource, Class, base, indexlayout,_){ |
2 | - return Class({ | ||
3 | - resource: resource, | ||
4 | - variable: function () { //全局变量 | ||
5 | - var panel = index.getSelectedPanel(); | ||
6 | - this.page = panel.children('.crm-accountset-detail').layout({fit: true}); | ||
7 | - this.north = this.page.layout("panel", "north"); | ||
8 | - this.center = this.page.layout("panel", "center"); | ||
9 | - this.grid = $('<div></div>').appendTo(this.center); | ||
10 | - this.queryId = 'f1fd6213-c928-4e72-87f2-f8bfe8589b19'; | ||
11 | - this.tabs=this.center.children("div").tabs({closable : false, fit:true}); | ||
12 | - this.netDetail = this.page.find(".netDetail"); | ||
13 | 2 | ||
14 | - }, | 3 | + return { |
15 | - initialize: function () {//界面布局 | 4 | + init : function(actId, actCode,usId){ |
16 | - initNetDataGrid(this); | ||
17 | - }, | ||
18 | - handler: function(actId, actCode,usId){ //事件绑定 | ||
19 | var brandCount = 0; //品牌searchbox渲染次数,第一次渲染的时候,需要刷新 | 5 | var brandCount = 0; //品牌searchbox渲染次数,第一次渲染的时候,需要刷新 |
20 | - | 6 | + var panel=indexlayout.getSelectedPanel(); |
7 | + var query="f1fd6213-c928-4e72-87f2-f8bfe8589b19"; | ||
8 | + var layout=panel.children('.crm-accountset-detail').layout({ fit:true }); | ||
9 | + //声明整个登录账户选项卡容器 | ||
10 | + var page=panel.children('.crm-accountset-detail'); | ||
11 | + var north=page.layout("panel","north"); | ||
12 | + var center=page.layout("panel","center"); | ||
21 | var wxgzh = ""; | 13 | var wxgzh = ""; |
22 | var index = 0; | 14 | var index = 0; |
23 | var div = "<div class='easyui-tabs l-btn-left l-btn-icon-left'></div>"; | 15 | var div = "<div class='easyui-tabs l-btn-left l-btn-icon-left'></div>"; |
... | @@ -29,41 +21,41 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -29,41 +21,41 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
29 | //toolPosition:'left', | 21 | //toolPosition:'left', |
30 | tools:[{ | 22 | tools:[{ |
31 | iconCls:'icon-add', | 23 | iconCls:'icon-add', |
32 | - text: resource.btn.add, | 24 | + text: base.resource.btn.add, |
33 | handler:addNetTab | 25 | handler:addNetTab |
34 | },{ | 26 | },{ |
35 | iconCls:'icon-re', | 27 | iconCls:'icon-re', |
36 | - text: resource.btn.remove, | 28 | + text: base.resource.btn.remove, |
37 | handler:removeNetTab | 29 | handler:removeNetTab |
38 | }] | 30 | }] |
39 | }) | 31 | }) |
40 | tabs.tabs('update', { | 32 | tabs.tabs('update', { |
41 | tab: tabs.tabs("getTab",0), | 33 | tab: tabs.tabs("getTab",0), |
42 | options: { | 34 | options: { |
43 | - title: resource.accountset.grid.sites, | 35 | + title: resource.grid.sites, |
44 | content:netDataGrid | 36 | content:netDataGrid |
45 | } | 37 | } |
46 | }); | 38 | }); |
47 | var accsetDetail=north.find(".accountSet"); | 39 | var accsetDetail=north.find(".accountSet"); |
48 | var accsetDetailform = accsetDetail.find(".accountSetForm"); | 40 | var accsetDetailform = accsetDetail.find(".accountSetForm"); |
49 | - | 41 | + var netDetail = page.find(".netDetail"); |
50 | 42 | ||
51 | //经营主体和短信通道联动 | 43 | //经营主体和短信通道联动 |
52 | var netDataGrid = initNetDataGrid(); | 44 | var netDataGrid = initNetDataGrid(); |
53 | accsetDetailform.find(".platFormDialog").searchbox({ | 45 | accsetDetailform.find(".platFormDialog").searchbox({ |
54 | searcher:searchPlat, | 46 | searcher:searchPlat, |
55 | - prompt:resource.accountset.select, | 47 | + prompt:resource.select, |
56 | onChange:platFormChange | 48 | onChange:platFormChange |
57 | }); | 49 | }); |
58 | if(0 != actId){ | 50 | if(0 != actId){ |
59 | $.post('./accountSetDetail/queryById.json',{"actId":actId},function(result){ | 51 | $.post('./accountSetDetail/queryById.json',{"actId":actId},function(result){ |
60 | - if(responseUtils(result)){ | 52 | + if($.response(result)){ |
61 | accsetDetailform.form("load", result.value); | 53 | accsetDetailform.form("load", result.value); |
62 | actCode = result.value.actCode; | 54 | actCode = result.value.actCode; |
63 | if(result.value.actCode=="C001"){ | 55 | if(result.value.actCode=="C001"){ |
64 | - accsetDetailform.find('.accSetType').val(resource.accountset.title.faAct); | 56 | + accsetDetailform.find('.accSetType').val(resource.title.faAct); |
65 | }else{ | 57 | }else{ |
66 | - accsetDetailform.find('.accSetType').val(resource.accountset.title.soAct); | 58 | + accsetDetailform.find('.accSetType').val(resource.title.soAct); |
67 | } | 59 | } |
68 | initMsgChannelCombobox(); | 60 | initMsgChannelCombobox(); |
69 | } | 61 | } |
... | @@ -81,7 +73,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -81,7 +73,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
81 | }else{ | 73 | }else{ |
82 | accsetDetailform.find(".actCode").attr("readonly",true); | 74 | accsetDetailform.find(".actCode").attr("readonly",true); |
83 | $.post('./accountSet/querySiteGroup.json',{"actId":actId},function(result){ | 75 | $.post('./accountSet/querySiteGroup.json',{"actId":actId},function(result){ |
84 | - if(responseUtils(result)){ | 76 | + if($.response(result)){ |
85 | var siteGroup = result.list; | 77 | var siteGroup = result.list; |
86 | if(siteGroup.length == 0){ | 78 | if(siteGroup.length == 0){ |
87 | var tab =""; | 79 | var tab =""; |
... | @@ -103,9 +95,9 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -103,9 +95,9 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
103 | } | 95 | } |
104 | tab.find(".content").find(".netForm").find(".wxghzName").searchbox({ | 96 | tab.find(".content").find(".netForm").find(".wxghzName").searchbox({ |
105 | searcher:searchWxgzh, | 97 | searcher:searchWxgzh, |
106 | - prompt:resource.accountset.select | 98 | + prompt:resource.select |
107 | }); | 99 | }); |
108 | - readonlyUtils(tab.find(".content").find(".netForm").find(".wxghzName"),function(){ | 100 | + base.readonly(tab.find(".content").find(".netForm").find(".wxghzName"),function(){ |
109 | tab.find(".content").find(".netForm").find(".wxghz").val(""); | 101 | tab.find(".content").find(".netForm").find(".wxghz").val(""); |
110 | tab.find(".content").find(".netForm").find(".gzhType").val(""); | 102 | tab.find(".content").find(".netForm").find(".gzhType").val(""); |
111 | }); | 103 | }); |
... | @@ -120,26 +112,26 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -120,26 +112,26 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
120 | 112 | ||
121 | }else{ | 113 | }else{ |
122 | accsetDetailform.find(".actCode").val(actCode); | 114 | accsetDetailform.find(".actCode").val(actCode); |
123 | - accsetDetailform.find(".accSetType").val(resource.accountset.title.soAct); | 115 | + accsetDetailform.find(".accSetType").val(resource.title.soAct); |
124 | - readonlyUtils(netDetail.find(".netForm").find(".wxghzName"),function(){ | 116 | + base.readonly(netDetail.find(".netForm").find(".wxghzName"),function(){ |
125 | netDetail.find(".netForm").find(".wxghz").val(""); | 117 | netDetail.find(".netForm").find(".wxghz").val(""); |
126 | netDetail.find(".netForm").find(".gzhType").val(""); | 118 | netDetail.find(".netForm").find(".gzhType").val(""); |
127 | }); | 119 | }); |
128 | netDetail.find(".netForm").find(".wxghzName").searchbox({ | 120 | netDetail.find(".netForm").find(".wxghzName").searchbox({ |
129 | searcher:searchWxgzh, | 121 | searcher:searchWxgzh, |
130 | - prompt:resource.accountset.select | 122 | + prompt:resource.select |
131 | }); | 123 | }); |
132 | // initMsgChannelCombobox(); | 124 | // initMsgChannelCombobox(); |
133 | } | 125 | } |
134 | 126 | ||
135 | function searchWxgzh(){ | 127 | function searchWxgzh(){ |
136 | - showCondObject({id:'2582a029-3902-4934-a206-d638f96d4b08',showGrid:true,refresh:true},function(row){ | 128 | + base.showCondObject({id:'2582a029-3902-4934-a206-d638f96d4b08',showGrid:true,refresh:true},function(row){ |
137 | var tabAll = tabs.tabs("tabs"); | 129 | var tabAll = tabs.tabs("tabs"); |
138 | for (var i = 0; i < tabAll.length; i++) { | 130 | for (var i = 0; i < tabAll.length; i++) { |
139 | var tab = tabs.tabs("getTab",i); | 131 | var tab = tabs.tabs("getTab",i); |
140 | if(row.GZH_ID == tab.find(".content").find(".netForm").find(".wxghz").val()){ | 132 | if(row.GZH_ID == tab.find(".content").find(".netForm").find(".wxghz").val()){ |
141 | if(row.NICK_NAME == tab.find(".content").find(".netForm").find(".wxghzName").val()) { | 133 | if(row.NICK_NAME == tab.find(".content").find(".netForm").find(".wxghzName").val()) { |
142 | - return $.messager.alert(resource.msg_title, row.NICK_NAME + resource.accountset.title.plBeSelected); | 134 | + return $.messager.alert(resource.msg_title, row.NICK_NAME + resource.title.plBeSelected); |
143 | } | 135 | } |
144 | } | 136 | } |
145 | } | 137 | } |
... | @@ -156,7 +148,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -156,7 +148,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
156 | function addtab(grpId){ | 148 | function addtab(grpId){ |
157 | index++; | 149 | index++; |
158 | tabs.tabs('add',{ | 150 | tabs.tabs('add',{ |
159 | - title: resource.accountset.grid.sites+index, | 151 | + title: resource.grid.sites+index, |
160 | closable: false | 152 | closable: false |
161 | }); | 153 | }); |
162 | var tabPanel =tabs.tabs('getSelected'); | 154 | var tabPanel =tabs.tabs('getSelected'); |
... | @@ -167,26 +159,26 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -167,26 +159,26 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
167 | singleSelect : false, | 159 | singleSelect : false, |
168 | toolbar:$('<div class="clearfix"></div>').rs_toolbar({ | 160 | toolbar:$('<div class="clearfix"></div>').rs_toolbar({ |
169 | content:addbtml(), | 161 | content:addbtml(), |
170 | - title:resource.accountset.title.suitSite, | 162 | + title:resource.title.suitSite, |
171 | - authz:getAuthzUtils('accountSet'), | 163 | + authz:base.getAuthz('accountSet'), |
172 | buttons:[{ | 164 | buttons:[{ |
173 | code:'edit', | 165 | code:'edit', |
174 | - text: resource.btn.add, | 166 | + text: base.resource.btn.add, |
175 | iconCls:'btn-add', | 167 | iconCls:'btn-add', |
176 | handler: addNet | 168 | handler: addNet |
177 | },{ | 169 | },{ |
178 | code:'edit', | 170 | code:'edit', |
179 | - text: resource.btn.remove, | 171 | + text: base.resource.btn.remove, |
180 | iconCls:'btn-remove', | 172 | iconCls:'btn-remove', |
181 | handler:removeNet | 173 | handler:removeNet |
182 | }] | 174 | }] |
183 | }), | 175 | }), |
184 | columns:[[ | 176 | columns:[[ |
185 | {field:'ck',checkbox:true }, | 177 | {field:'ck',checkbox:true }, |
186 | - {field:'SICODE',title:resource.accountset.grid.sicode, width:100, align:"center"}, | 178 | + {field:'SICODE',title:resource.grid.sicode, width:100, align:"center"}, |
187 | - {field:'SINAME',title:resource.accountset.grid.siname, width:100, align:"center"}, | 179 | + {field:'SINAME',title:resource.grid.siname, width:100, align:"center"}, |
188 | - {field:'BENAME',title:resource.accountset.grid.bename, width:100, align:"center"}, | 180 | + {field:'BENAME',title:resource.grid.bename, width:100, align:"center"}, |
189 | - {field:'BEBNAME',title:resource.accountset.grid.bebname, width:100, align:"center"} | 181 | + {field:'BEBNAME',title:resource.grid.bebname, width:100, align:"center"} |
190 | ]] | 182 | ]] |
191 | }); | 183 | }); |
192 | addTable.datagrid({url:"./query/f1fd6213-c928-4e72-87f2-f8bfe8589b19.json?8d7bca20-08d8-48e3-94eb-a913e61f55ee="+grpId}); | 184 | addTable.datagrid({url:"./query/f1fd6213-c928-4e72-87f2-f8bfe8589b19.json?8d7bca20-08d8-48e3-94eb-a913e61f55ee="+grpId}); |
... | @@ -194,14 +186,16 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -194,14 +186,16 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
194 | accsetDetail.rs_toolbar({ | 186 | accsetDetail.rs_toolbar({ |
195 | content:accsetDetailform, | 187 | content:accsetDetailform, |
196 | buttons:[{ | 188 | buttons:[{ |
197 | - text:resource.btn.save, | 189 | + text:base.resource.btn.save, |
198 | iconCls:'btn-add', | 190 | iconCls:'btn-add', |
199 | handler:saveAccsetDetail | 191 | handler:saveAccsetDetail |
200 | }], | 192 | }], |
201 | tools:[{ | 193 | tools:[{ |
202 | - text:resource.btn.refresh, | 194 | + text:base.resource.btn.refresh, |
203 | iconCls:'btn-refresh', | 195 | iconCls:'btn-refresh', |
204 | - handler:panelRefreshUtils | 196 | + handler:function() { |
197 | + indexlayout.getSelectedPanel().panel("refresh"); | ||
198 | + } | ||
205 | } | 199 | } |
206 | ] | 200 | ] |
207 | }); | 201 | }); |
... | @@ -213,7 +207,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -213,7 +207,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
213 | } | 207 | } |
214 | 208 | ||
215 | function searchPlat(){ | 209 | function searchPlat(){ |
216 | - showCondObject({id:'0089f254-a93b-4f98-b8f7-0312ce06de45',showGrid:true,refresh:true},function(row){ | 210 | + base.showCondObject({id:'0089f254-a93b-4f98-b8f7-0312ce06de45',showGrid:true,refresh:true},function(row){ |
217 | accsetDetailform.find(".platFormDialog").searchbox('setValue',row.PLNAME); | 211 | accsetDetailform.find(".platFormDialog").searchbox('setValue',row.PLNAME); |
218 | accsetDetailform.find(".ptfId").val(row.PLID); | 212 | accsetDetailform.find(".ptfId").val(row.PLID); |
219 | if(platformChangeFlag){ | 213 | if(platformChangeFlag){ |
... | @@ -223,13 +217,13 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -223,13 +217,13 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
223 | }); | 217 | }); |
224 | } | 218 | } |
225 | 219 | ||
226 | - readonlyUtils(accsetDetailform.find(".platFormDialog"),function(){ | 220 | + base.readonly(accsetDetailform.find(".platFormDialog"),function(){ |
227 | accsetDetailform.find(".ptfId").val(""); | 221 | accsetDetailform.find(".ptfId").val(""); |
228 | }); | 222 | }); |
229 | 223 | ||
230 | accsetDetailform.find(".applyBrandDialog").searchbox({ | 224 | accsetDetailform.find(".applyBrandDialog").searchbox({ |
231 | searcher:searchBrand, | 225 | searcher:searchBrand, |
232 | - prompt:resource.accountset.noLimit | 226 | + prompt:resource.noLimit |
233 | }); | 227 | }); |
234 | 228 | ||
235 | function initMsgChannelCombobox(){ | 229 | function initMsgChannelCombobox(){ |
... | @@ -239,7 +233,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -239,7 +233,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
239 | type:1 | 233 | type:1 |
240 | }; | 234 | }; |
241 | $.post('./msgChannel/selectAll/beIdOrPlId.json',param,function(result){ | 235 | $.post('./msgChannel/selectAll/beIdOrPlId.json',param,function(result){ |
242 | - if(responseUtils(result)){ | 236 | + if($.response(result)){ |
243 | accsetDetailform.find(".msgChannel").combobox("loadData", result.list); | 237 | accsetDetailform.find(".msgChannel").combobox("loadData", result.list); |
244 | var data =accsetDetailform.find(".msgChannel").combobox('getData'); | 238 | var data =accsetDetailform.find(".msgChannel").combobox('getData'); |
245 | // accsetDetailform.find(".msgChannel").combobox('select',data[0].id); | 239 | // accsetDetailform.find(".msgChannel").combobox('select',data[0].id); |
... | @@ -253,7 +247,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -253,7 +247,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
253 | type:1 | 247 | type:1 |
254 | }; | 248 | }; |
255 | $.post('./msgChannel/selectAll/beIdOrPlId.json',param,function(result){ | 249 | $.post('./msgChannel/selectAll/beIdOrPlId.json',param,function(result){ |
256 | - if(responseUtils(result)){ | 250 | + if($.response(result)){ |
257 | accsetDetailform.find(".msgChannel").combobox("loadData", result.list); | 251 | accsetDetailform.find(".msgChannel").combobox("loadData", result.list); |
258 | var data =accsetDetailform.find(".msgChannel").combobox('getData'); | 252 | var data =accsetDetailform.find(".msgChannel").combobox('getData'); |
259 | accsetDetailform.find(".msgChannel").combobox('clear'); | 253 | accsetDetailform.find(".msgChannel").combobox('clear'); |
... | @@ -267,7 +261,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -267,7 +261,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
267 | if(brandCount == 1){ | 261 | if(brandCount == 1){ |
268 | var refreshFlag = true; | 262 | var refreshFlag = true; |
269 | } | 263 | } |
270 | - showCondObject({id:"22726b54-5748-4926-82ed-abe076caecfa", showGrid:true, singleSelect:false,condHidden:['b350631c-dc97-4be5-93e5-0d771365a4c7'],refresh:refreshFlag,onBeforeLoad:function(params){ | 264 | + base.showCondObject({id:"22726b54-5748-4926-82ed-abe076caecfa", showGrid:true, singleSelect:false,condHidden:['b350631c-dc97-4be5-93e5-0d771365a4c7'],refresh:refreshFlag,onBeforeLoad:function(params){ |
271 | return params["b350631c-dc97-4be5-93e5-0d771365a4c7"]= 1; | 265 | return params["b350631c-dc97-4be5-93e5-0d771365a4c7"]= 1; |
272 | }}, function(rows){ | 266 | }}, function(rows){ |
273 | var brandIdArray = ""; | 267 | var brandIdArray = ""; |
... | @@ -287,34 +281,34 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -287,34 +281,34 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
287 | }); | 281 | }); |
288 | } | 282 | } |
289 | 283 | ||
290 | - readonlyUtils(accsetDetailform.find(".applyBrandDialog"),function(){ | 284 | + base.readonly(accsetDetailform.find(".applyBrandDialog"),function(){ |
291 | accsetDetailform.find(".brId").val(""); | 285 | accsetDetailform.find(".brId").val(""); |
292 | }); | 286 | }); |
293 | 287 | ||
294 | function prepareAccount(){ | 288 | function prepareAccount(){ |
295 | if("" == accsetDetailform.find("input[name='msgChannel']").val() || null == accsetDetailform.find("input[name='msgChannel']").val()){ | 289 | if("" == accsetDetailform.find("input[name='msgChannel']").val() || null == accsetDetailform.find("input[name='msgChannel']").val()){ |
296 | - $.messager.alert(resource.msg_title, resource.accountset.validateMsgChannel,'warning', function(){accsetDetailform.form("validate");}); | 290 | + $.messager.alert(resource.msg_title, resource.validateMsgChannel,'warning', function(){accsetDetailform.form("validate");}); |
297 | return; | 291 | return; |
298 | } | 292 | } |
299 | if(!accsetDetailform.form("validate")){ | 293 | if(!accsetDetailform.form("validate")){ |
300 | return; | 294 | return; |
301 | } | 295 | } |
302 | if("" == accsetDetailform.find("input[name='actCode']").val() || null == accsetDetailform.find("input[name='actCode']").val()){ | 296 | if("" == accsetDetailform.find("input[name='actCode']").val() || null == accsetDetailform.find("input[name='actCode']").val()){ |
303 | - $.messager.alert(resource.msg_title, resource.accountset.validateCode); | 297 | + $.messager.alert(resource.msg_title, resource.validateCode); |
304 | return; | 298 | return; |
305 | } | 299 | } |
306 | if("" == accsetDetailform.find("input[name='actName']").val() || null == accsetDetailform.find("input[name='actName']").val()){ | 300 | if("" == accsetDetailform.find("input[name='actName']").val() || null == accsetDetailform.find("input[name='actName']").val()){ |
307 | - $.messager.alert(resource.msg_title, resource.accountset.validateName); | 301 | + $.messager.alert(resource.msg_title, resource.validateName); |
308 | return; | 302 | return; |
309 | } | 303 | } |
310 | if("" == accsetDetailform.find("input[name='ptfId']").val() || null == accsetDetailform.find("input[name='ptfId']").val()){ | 304 | if("" == accsetDetailform.find("input[name='ptfId']").val() || null == accsetDetailform.find("input[name='ptfId']").val()){ |
311 | - $.messager.alert(resource.msg_title, resource.accountset.validatePlatForm); | 305 | + $.messager.alert(resource.msg_title, resource.validatePlatForm); |
312 | return; | 306 | return; |
313 | } | 307 | } |
314 | 308 | ||
315 | if('C001' != accsetDetailform.find("input[name='actCode']").val()){ | 309 | if('C001' != accsetDetailform.find("input[name='actCode']").val()){ |
316 | if("" == accsetDetailform.find("input[name='msgChannel']").val() || null == accsetDetailform.find("input[name='msgChannel']").val()){ | 310 | if("" == accsetDetailform.find("input[name='msgChannel']").val() || null == accsetDetailform.find("input[name='msgChannel']").val()){ |
317 | - $.messager.alert(resource.msg_title, resource.accountset.validateMsgChannel); | 311 | + $.messager.alert(resource.msg_title, resource.validateMsgChannel); |
318 | return; | 312 | return; |
319 | } | 313 | } |
320 | var param={ | 314 | var param={ |
... | @@ -372,11 +366,11 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -372,11 +366,11 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
372 | if(param == null){ | 366 | if(param == null){ |
373 | return; | 367 | return; |
374 | } | 368 | } |
375 | - $.messager.confirm(resource.msg_title,resource.users.saveTitle, function(r){ | 369 | + $.messager.confirm(resource.msg_title,resource.saveTitle, function(r){ |
376 | if (r){ | 370 | if (r){ |
377 | $.JSON('./accountSet/add.json', param, function(result){ | 371 | $.JSON('./accountSet/add.json', param, function(result){ |
378 | - if(responseUtils(result)){ | 372 | + if($.response(result)){ |
379 | - closeSelectedPanel(); | 373 | + indexlayout.closeSelectedPanel(); |
380 | } | 374 | } |
381 | }); | 375 | }); |
382 | } | 376 | } |
... | @@ -388,14 +382,14 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -388,14 +382,14 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
388 | if(param == null){ | 382 | if(param == null){ |
389 | return; | 383 | return; |
390 | } | 384 | } |
391 | - $.messager.confirm(resource.msg_title,resource.users.saveTitle, function(r){ | 385 | + $.messager.confirm(resource.msg_title,resource.saveTitle, function(r){ |
392 | if (r){ | 386 | if (r){ |
393 | $.JSON('./accountSet/add.json', param, function(result){ | 387 | $.JSON('./accountSet/add.json', param, function(result){ |
394 | - if(responseUtils(result)){ | 388 | + if($.response(result)){ |
395 | var actId = result.value.actId; | 389 | var actId = result.value.actId; |
396 | var actCode = result.value.actCode; | 390 | var actCode = result.value.actCode; |
397 | - base.showPanel({text:resource.accountset.title.detail,url:"./accountSetDetail/accountSetDetailEdit?actId="+result.value.actId+"&actCode="+result.value.actCode}, true, function(){ | 391 | + indexlayout.showPanel({text:resource.title.detail,url:"./accountSetDetail/accountSetDetailEdit?actId="+result.value.actId+"&actCode="+result.value.actCode}, true, function(){ |
398 | - panelRefreshUtils(); | 392 | + indexlayout.getSelectedPanel().panel("refresh"); |
399 | }); | 393 | }); |
400 | } | 394 | } |
401 | }); | 395 | }); |
... | @@ -405,11 +399,11 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -405,11 +399,11 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
405 | 399 | ||
406 | //网点新建datagrid | 400 | //网点新建datagrid |
407 | function addNet(){ | 401 | function addNet(){ |
408 | - showCondObject({id:"37236df9-2c96-11e6-abf4-3c970e1c88a0", showGrid:true,refresh:true, singleSelect:false, | 402 | + base.showCondObject({id:"37236df9-2c96-11e6-abf4-3c970e1c88a0", showGrid:true,refresh:true, singleSelect:false, |
409 | onBeforeLoad:function(params){ | 403 | onBeforeLoad:function(params){ |
410 | var params; | 404 | var params; |
411 | var brandId = accsetDetailform.find(".brId").val(); | 405 | var brandId = accsetDetailform.find(".brId").val(); |
412 | - if(!isNull(brandId)){ | 406 | + if(!_.isString(brandId)){ |
413 | params["b8f7769a-2c97-11e6-abf4-3c970e1c88a0"]=","+brandId+","; | 407 | params["b8f7769a-2c97-11e6-abf4-3c970e1c88a0"]=","+brandId+","; |
414 | } | 408 | } |
415 | params["b8f709ba-2c97-11e6-abf4-3c970e1c88a0"]= 1; | 409 | params["b8f709ba-2c97-11e6-abf4-3c970e1c88a0"]= 1; |
... | @@ -453,7 +447,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -453,7 +447,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
453 | actDesc : accsetDetailform.find("input[name='actDesc']").val(), | 447 | actDesc : accsetDetailform.find("input[name='actDesc']").val(), |
454 | }; | 448 | }; |
455 | 449 | ||
456 | - $.messager.confirm(resource.msg_title, resource.users.onAddCannot, function(r) { | 450 | + $.messager.confirm(resource.msg_title, resource.onAddCannot, function(r) { |
457 | if (r) { | 451 | if (r) { |
458 | var siteGroup = []; | 452 | var siteGroup = []; |
459 | var site=""; | 453 | var site=""; |
... | @@ -479,7 +473,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -479,7 +473,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
479 | param["siteGroupList"] = siteGroup; | 473 | param["siteGroupList"] = siteGroup; |
480 | 474 | ||
481 | $.JSON('./accountSet/addSiteOnGroup.json', param, function(result) { | 475 | $.JSON('./accountSet/addSiteOnGroup.json', param, function(result) { |
482 | - if (responseUtils(result)) { | 476 | + if ($.response(result)) { |
483 | var groupId = tab.find("input[name='grpId']").val(); | 477 | var groupId = tab.find("input[name='grpId']").val(); |
484 | if(tab.find("input[name='grpId']").val()=="0"){ | 478 | if(tab.find("input[name='grpId']").val()=="0"){ |
485 | tab.find("input[name='grpId']").val(result.value.siteGroupList[0].grpId); | 479 | tab.find("input[name='grpId']").val(result.value.siteGroupList[0].grpId); |
... | @@ -519,7 +513,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -519,7 +513,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
519 | actDesc : accsetDetailform.find("input[name='actDesc']").val(), | 513 | actDesc : accsetDetailform.find("input[name='actDesc']").val(), |
520 | }; | 514 | }; |
521 | 515 | ||
522 | - $.messager.confirm(resource.msg_title, resource.users.onDeleteCannot, function(r) { | 516 | + $.messager.confirm(resource.msg_title, resource.onDeleteCannot, function(r) { |
523 | if (r) { | 517 | if (r) { |
524 | var rows = datagrid.datagrid('getSelections'); // 获取选中的行数据 | 518 | var rows = datagrid.datagrid('getSelections'); // 获取选中的行数据 |
525 | // 页面上删除选中的行 | 519 | // 页面上删除选中的行 |
... | @@ -550,7 +544,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -550,7 +544,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
550 | param["siteGroupList"] = siteGroup; | 544 | param["siteGroupList"] = siteGroup; |
551 | 545 | ||
552 | $.JSON('./accountSet/deleteSiteOnGroup.json', param, function(result) { | 546 | $.JSON('./accountSet/deleteSiteOnGroup.json', param, function(result) { |
553 | - if (responseUtils(result)) { | 547 | + if ($.response(result)) { |
554 | // closeSelectedPanel(); | 548 | // closeSelectedPanel(); |
555 | var rows = datagrid.datagrid("getData").rows; | 549 | var rows = datagrid.datagrid("getData").rows; |
556 | if(rows.length==0){ | 550 | if(rows.length==0){ |
... | @@ -576,7 +570,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -576,7 +570,7 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
576 | actDesc : accsetDetailform.find("input[name='actDesc']").val(), | 570 | actDesc : accsetDetailform.find("input[name='actDesc']").val(), |
577 | }; | 571 | }; |
578 | 572 | ||
579 | - $.messager.confirm(resource.msg_title, resource.users.onDeleteGroupCannot, function(r) { | 573 | + $.messager.confirm(resource.msg_title, resource.onDeleteGroupCannot, function(r) { |
580 | if (r) { | 574 | if (r) { |
581 | var siteGroup = []; | 575 | var siteGroup = []; |
582 | var tab =tabs.tabs('getSelected'); | 576 | var tab =tabs.tabs('getSelected'); |
... | @@ -589,10 +583,10 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -589,10 +583,10 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
589 | param["siteGroupList"] = siteGroup; | 583 | param["siteGroupList"] = siteGroup; |
590 | 584 | ||
591 | $.JSON('./accountSet/deleteGroup.json', param, function(result) { | 585 | $.JSON('./accountSet/deleteGroup.json', param, function(result) { |
592 | - if (responseUtils(result)) { | 586 | + if ($.response(result)) { |
593 | var index = tabs.tabs('getTabIndex', tab); | 587 | var index = tabs.tabs('getTabIndex', tab); |
594 | tabs.tabs('close', index); | 588 | tabs.tabs('close', index); |
595 | - panelRefreshUtils(); | 589 | + indexlayout.getSelectedPanel().panel("refresh"); |
596 | } | 590 | } |
597 | }); | 591 | }); |
598 | } | 592 | } |
... | @@ -619,12 +613,52 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -619,12 +613,52 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
619 | // return cc; | 613 | // return cc; |
620 | // } | 614 | // } |
621 | // 初始化网点组datagrid | 615 | // 初始化网点组datagrid |
616 | + function initNetDataGrid(){ | ||
617 | + return tabs.find(".netwooks").datagrid({ | ||
618 | + singleSelect : false, | ||
619 | +// onLoadSuccess : aaatest, | ||
620 | +// onBeforeLoad : bbbtest, | ||
621 | +// loadFilter: ccctest, | ||
622 | 622 | ||
623 | + //url:"./query/e0e0f773-34a1-450c-8868-60433a245eb8.json", | ||
624 | + toolbar:$('<div class="clearfix"></div>').rs_toolbar({ | ||
625 | + content:netDetail, | ||
626 | + title:resource.title.suitSite, | ||
627 | + authz:base.getAuthz('accountSet'), | ||
628 | + buttons:[ | ||
629 | + { | ||
630 | + text:base.resource.btn.select, | ||
631 | + iconCls:"btn-select select-condition", | ||
632 | + handler: function(){ | ||
633 | + base.showCondObject(query,datagridReload); | ||
634 | + } | ||
635 | + }, | ||
636 | + { | ||
637 | + code:'edit', | ||
638 | + text: base.resource.btn.add, | ||
639 | + iconCls:'btn-add', | ||
640 | + handler: addNet | ||
641 | + },{ | ||
642 | + code:'edit', | ||
643 | + text: base.resource.btn.remove, | ||
644 | + iconCls:'btn-remove', | ||
645 | + handler:removeNet | ||
646 | + }] | ||
647 | + }), | ||
648 | + columns:[[ | ||
649 | + {field:'ck',checkbox:true }, | ||
650 | + {field:'SICODE',title:resource.grid.sicode, width:100, align:"center"}, | ||
651 | + {field:'SINAME',title:resource.grid.siname, width:100, align:"center"}, | ||
652 | + {field:'BENAME',title:resource.grid.bename, width:100, align:"center"}, | ||
653 | + {field:'BEBNAME',title:resource.grid.bebname, width:100, align:"center"} | ||
654 | + ]] | ||
655 | + }); | ||
656 | + } | ||
623 | 657 | ||
624 | //新增一个tab | 658 | //新增一个tab |
625 | function addNetTab(){ | 659 | function addNetTab(){ |
626 | if(actId == 0){ | 660 | if(actId == 0){ |
627 | - $.messager.confirm(resource.msg_title, resource.users.mustSubmitAccountBeforeSecondGroup, function(r) { | 661 | + $.messager.confirm(resource.msg_title, resource.mustSubmitAccountBeforeSecondGroup, function(r) { |
628 | if (r) { | 662 | if (r) { |
629 | saveTabBeforeSecondGroup(); | 663 | saveTabBeforeSecondGroup(); |
630 | } | 664 | } |
... | @@ -633,12 +667,12 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -633,12 +667,12 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
633 | } | 667 | } |
634 | var data = tabs.tabs('getSelected').find(".datagrid-f").datagrid("getData"); | 668 | var data = tabs.tabs('getSelected').find(".datagrid-f").datagrid("getData"); |
635 | if(data.rows.length==0){ | 669 | if(data.rows.length==0){ |
636 | - return $.messager.alert(resource.msg_title,resource.accountset.title.editCurtSite); | 670 | + return $.messager.alert(resource.msg_title,resource.title.editCurtSite); |
637 | } | 671 | } |
638 | // var tab = tabs.tabs("getTab",0).find(".datagrid").clone(); //好像没用,先删除 | 672 | // var tab = tabs.tabs("getTab",0).find(".datagrid").clone(); //好像没用,先删除 |
639 | index++; | 673 | index++; |
640 | tabs.tabs('add',{ | 674 | tabs.tabs('add',{ |
641 | - title: resource.accountset.grid.sites+index, | 675 | + title: resource.grid.sites+index, |
642 | closable: false | 676 | closable: false |
643 | }); | 677 | }); |
644 | var currentTabPanel =tabs.tabs('getSelected'); | 678 | var currentTabPanel =tabs.tabs('getSelected'); |
... | @@ -649,35 +683,35 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -649,35 +683,35 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
649 | singleSelect : false, | 683 | singleSelect : false, |
650 | toolbar:$('<div class="clearfix"></div>').rs_toolbar({ | 684 | toolbar:$('<div class="clearfix"></div>').rs_toolbar({ |
651 | content:addbtml(), | 685 | content:addbtml(), |
652 | - title:resource.accountset.title.suitSite, | 686 | + title:resource.title.suitSite, |
653 | - authz:getAuthzUtils('accountSet'), | 687 | + authz:base.getAuthz('accountSet'), |
654 | buttons:[{ | 688 | buttons:[{ |
655 | code:'edit', | 689 | code:'edit', |
656 | - text: resource.btn.add, | 690 | + text: base.resource.btn.add, |
657 | iconCls:'btn-add', | 691 | iconCls:'btn-add', |
658 | handler: addNet | 692 | handler: addNet |
659 | },{ | 693 | },{ |
660 | code:'edit', | 694 | code:'edit', |
661 | - text: resource.btn.remove, | 695 | + text: base.resource.btn.remove, |
662 | iconCls:'btn-remove', | 696 | iconCls:'btn-remove', |
663 | handler:removeNet | 697 | handler:removeNet |
664 | }] | 698 | }] |
665 | }), | 699 | }), |
666 | columns:[[ | 700 | columns:[[ |
667 | {field:'ck',checkbox:true }, | 701 | {field:'ck',checkbox:true }, |
668 | - {field:'SICODE',title:resource.accountset.grid.sicode, width:100, align:"center"}, | 702 | + {field:'SICODE',title:resource.grid.sicode, width:100, align:"center"}, |
669 | - {field:'SINAME',title:resource.accountset.grid.siname, width:100, align:"center"}, | 703 | + {field:'SINAME',title:resource.grid.siname, width:100, align:"center"}, |
670 | - {field:'BENAME',title:resource.accountset.grid.bename, width:100, align:"center"}, | 704 | + {field:'BENAME',title:resource.grid.bename, width:100, align:"center"}, |
671 | - {field:'BEBNAME',title:resource.accountset.grid.bebname, width:100, align:"center"} | 705 | + {field:'BEBNAME',title:resource.grid.bebname, width:100, align:"center"} |
672 | ]] | 706 | ]] |
673 | }); | 707 | }); |
674 | - readonlyUtils(currentTabPanel.find(".content").find(".netForm").find(".wxghzName"),function(){ | 708 | + base.readonly(currentTabPanel.find(".content").find(".netForm").find(".wxghzName"),function(){ |
675 | currentTabPanel.find(".content").find(".netForm").find(".wxghz").val(""); | 709 | currentTabPanel.find(".content").find(".netForm").find(".wxghz").val(""); |
676 | currentTabPanel.find(".content").find(".netForm").find(".gzhType").val(""); | 710 | currentTabPanel.find(".content").find(".netForm").find(".gzhType").val(""); |
677 | }); | 711 | }); |
678 | currentTabPanel.find(".content").find(".netForm").find(".wxghzName").searchbox({ | 712 | currentTabPanel.find(".content").find(".netForm").find(".wxghzName").searchbox({ |
679 | searcher:searchWxgzh, | 713 | searcher:searchWxgzh, |
680 | - prompt:resource.accountset.select | 714 | + prompt:resource.select |
681 | }); | 715 | }); |
682 | } | 716 | } |
683 | 717 | ||
... | @@ -697,15 +731,15 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -697,15 +731,15 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
697 | return ""; | 731 | return ""; |
698 | } | 732 | } |
699 | if(gzhType==0){ | 733 | if(gzhType==0){ |
700 | - return resource.accountset.title.longmuseum; | 734 | + return resource.title.longmuseum; |
701 | }else if(gzhType==1){ | 735 | }else if(gzhType==1){ |
702 | - return resource.accountset.title.historymuseum; | 736 | + return resource.title.historymuseum; |
703 | }else if(gzhType==2){ | 737 | }else if(gzhType==2){ |
704 | - return resource.accountset.title.serviceNum; | 738 | + return resource.title.serviceNum; |
705 | }else if(gzhType==3){ | 739 | }else if(gzhType==3){ |
706 | - return resource.accountset.title.serviceNum; | 740 | + return resource.title.serviceNum; |
707 | }else{ | 741 | }else{ |
708 | - return resource.accountset.title.unknown; | 742 | + return resource.title.unknown; |
709 | } | 743 | } |
710 | } | 744 | } |
711 | 745 | ||
... | @@ -716,56 +750,14 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun | ... | @@ -716,56 +750,14 @@ define(['i18n!accountset/nls/resource', 'cls', 'base/index', 'index/index'], fun |
716 | return html; | 750 | return html; |
717 | } | 751 | } |
718 | 752 | ||
753 | + function tabClose(){ | ||
754 | + alert("todo zhangweijiang"); | ||
755 | + } | ||
719 | 756 | ||
720 | function datagridReload(params){ | 757 | function datagridReload(params){ |
721 | - if(params){ | 758 | + var param =base.getCondObjectValue(query); |
722 | - this.tabs.find(".netwooks").datagrid("reload",params); | 759 | + tabs.find(".netwooks").datagrid("reload",param); |
723 | - }else{ | ||
724 | - this.tabs.find(".netwooks").datagrid("reload",base.getCondObjectValue(this.queryId)); | ||
725 | - } | ||
726 | } | 760 | } |
727 | } | 761 | } |
728 | - }) | ||
729 | - function initNetDataGrid(inst){ | ||
730 | - return inst.tabs.find(".netwooks").datagrid({ | ||
731 | - singleSelect : false, | ||
732 | -// onLoadSuccess : aaatest, | ||
733 | -// onBeforeLoad : bbbtest, | ||
734 | -// loadFilter: ccctest, | ||
735 | - | ||
736 | - //url:"./query/e0e0f773-34a1-450c-8868-60433a245eb8.json", | ||
737 | - toolbar:$('<div class="clearfix"></div>').rs_toolbar({ | ||
738 | - content:inst.netDetail, | ||
739 | - title:resource.title.suitSite, | ||
740 | - authz:base.getAuthz('accountSet'), | ||
741 | - buttons:[ | ||
742 | - { | ||
743 | - text:base.resource.btn.select, | ||
744 | - iconCls:"btn-select select-condition", | ||
745 | - handler: function() { | ||
746 | - base.showCondObject(inst.queryId, function () { | ||
747 | - datagridReload.call(inst); | ||
748 | - }); | ||
749 | - } | ||
750 | - },{ | ||
751 | - code:'edit', | ||
752 | - text: base.resource.btn.add, | ||
753 | - iconCls:'btn-add', | ||
754 | - handler: addNet | ||
755 | - },{ | ||
756 | - code:'edit', | ||
757 | - text: base.resource.btn.remove, | ||
758 | - iconCls:'btn-remove', | ||
759 | - handler:removeNet | ||
760 | - }] | ||
761 | - }), | ||
762 | - columns:[[ | ||
763 | - {field:'ck',checkbox:true }, | ||
764 | - {field:'SICODE',title:resource.grid.sicode, width:100, align:"center"}, | ||
765 | - {field:'SINAME',title:resource.grid.siname, width:100, align:"center"}, | ||
766 | - {field:'BENAME',title:resource.grid.bename, width:100, align:"center"}, | ||
767 | - {field:'BEBNAME',title:resource.grid.bebname, width:100, align:"center"} | ||
768 | - ]] | ||
769 | - }); | ||
770 | } | 762 | } |
771 | }); | 763 | }); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -13,6 +13,12 @@ define({ | ... | @@ -13,6 +13,12 @@ define({ |
13 | deleteRank:'系统默认等级不能删除!', | 13 | deleteRank:'系统默认等级不能删除!', |
14 | select:'请选择', | 14 | select:'请选择', |
15 | noLimit:'不限', | 15 | noLimit:'不限', |
16 | + mustSubmitAccountBeforeSecondGroup:'新增第二个网点组之前,需要保存账套信息,是否保存?', | ||
17 | + saveTitle:'确定保存?', | ||
18 | + confirmDelete:'你确定要删除这条信息吗?', | ||
19 | + onAddCannot:"确认新增当前选择数据?", | ||
20 | + onDeleteCannot:"数据删除后无法恢复,确认删除当前选择数据?", | ||
21 | + onDeleteGroupCannot:"网点组删除后,其下的网点同时删除,且无法恢复,请确认删除当前网点组?", | ||
16 | title:{ | 22 | title:{ |
17 | name:'CRM账套', | 23 | name:'CRM账套', |
18 | detail:'CRM账套详情', | 24 | detail:'CRM账套详情', | ... | ... |
-
Please register or login to post a comment