123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- function editJsxx(id, from) {
- huimv.loadPage('qxglRight', 'editJsxx.htm', {
- "id" : id,
- "from" : from
- });
- }
- /**
- * 作废角色信息
- * @param id
- */
- function disableJsxx(id, from, numOfExistYh) {
- if(numOfExistYh != "" && numOfExistYh > 0) {
- var errMsg = document.getElementById('errMsg');
- errMsg.innerHTML = "无法删除此角色,请先通过操作用户中的分配角色功能去掉操作用户下的该角色!";
- return;
- }
-
- Dialogs.alert("确定作废当前角色信息?", {
- title : '提示信息',
- width : 250,
- height : 80,
- top : 150,
- button : {
- ok : ['确定',function(){
- this.close();
- huimv.showProcessModel('处理数据中');
-
- jQuery.ajax({
- url : 'disableJsxx.htm',
- dataType : 'json',
- type : 'post',
- cache : false,
- data : {"id" : id},
- success : function(data) {
- huimv.hideProcessModel();
- if (data.returnCode > 0) {
- if (from == 'list') {
- huimv.reloadGrid('jsxxGrid');
- } else if (from == 'view') {
- loadJsxxList();
- }
- } else {
- Dialogs.alert("传入参数有误!", {
- width : 300,
- height : 50
- });
- }
- },
- error : function(data) {
- huimv.showError(data.responseText);
- }
- });
- }],
- cancel : ['取消',function(){
- this.close();
- }]
- }
- });
- }
|