viewCzyh.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. function editCzyh(id, from) {
  2. huimv.loadPage('czyhRight', 'editCzyh.htm', {
  3. "id" : id,
  4. "from" : from
  5. });
  6. }
  7. /**
  8. * 作废操作用户
  9. * @param id
  10. */
  11. function disableCzyh(id, numOfExistJs) {
  12. if(numOfExistJs != "" && numOfExistJs > 0) {
  13. var errMsg = document.getElementById('errMsg');
  14. errMsg.innerHTML = "无法删除此操作用户,请先通过分配角色功能去掉此操作用户下的用户角色!";
  15. return;
  16. }
  17. Dialogs.alert("确定作废当前操作用户?", {
  18. title : '提示信息',
  19. width : 250,
  20. height : 80,
  21. top : 150,
  22. button : {
  23. ok : ['确定',function(){
  24. this.close();
  25. huimv.showProcessModel('处理数据中');
  26. jQuery.ajax({
  27. url : 'disableCzyh.htm',
  28. dataType : 'json',
  29. type : 'post',
  30. cache : false,
  31. data : {"id" : id},
  32. success : function(data) {
  33. huimv.hideProcessModel();
  34. if (data.returnCode > 0) {
  35. loadCzyhList();
  36. } else {
  37. Dialogs.alert("传入参数有误!", {
  38. width : 300,
  39. height : 50
  40. });
  41. }
  42. },
  43. error : function(data) {
  44. huimv.showError(data.responseText);
  45. }
  46. });
  47. }],
  48. cancel : ['取消',function(){
  49. this.close();
  50. }]
  51. }
  52. });
  53. }
  54. function modifyPW(yhid) {
  55. Dialogs.load('modifyPW.htm', {"yhid" : yhid}, {
  56. // 对话框基本配置选项
  57. draggable: true,//是否拖动
  58. autosize: false,//是否自适应大小
  59. resizable: true,//是否可以改变大小
  60. maximizable: true,//是否显示最大化最小化
  61. autopos: 'fixed',// 窗口是否(自动剧中,fixed)页面 默认’fixed’
  62. title: "修改密码",//窗口标题
  63. lightbox: true,//窗口应用时是否禁用其他操作
  64. width: 400,//窗口宽度
  65. height: 200//窗口高度
  66. });
  67. }