12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- function saveAdd(){
- var roleid=$("#roleid").val();
- var rolename=$("#rolename").val();
- var rolestatus=$("#rolestatus").val();
- if(!checkIsNotEmpty(rolename)){
- role_upd_winHandle=openSecondMessageWindow('请输入角色名称!',prjContextPath,'',250,100);
- return false;
- }
- if(fucCheckLength(rolename)>15){
- role_upd_winHandle=openSecondMessageWindow('请输入15个字符或7个汉字以内的内容!',prjContextPath);
- return false;
- }
- $.post(prjContextPath+"/roleAction!update.action",
- {
- rolename:rolename,
- rolestate:rolestatus,
- roleid:roleid
- },
- callBackFunFileSave);
- }
- var role_upd_winHandle;
- var ff=false;
- function callBackFunFileSave(json){
- if(json.success==1){
- role_upd_winHandle=openSecondMessageWindow('保存成功!',prjContextPath,'',250,100);
- ff=true;
- }else{
- role_add_winHandle=openSecondMessageWindow('保存失败,请联系管理员!',prjContextPath);
- }
- }
- function closeWindow() {
- parent.close_handle(1);
- }
- //系统提示消息窗口关闭方法
- function closeSysMes(){
- if(role_upd_winHandle!=null){
- role_upd_winHandle.reset();
- }
- if(ff){
- ff=false;
- parent.close_handle(1);
- }
- }
|