var AdminiEmbedHandle={Department:{Boxy:{key:"AdminiEmbedHandle-Department-Edit",init:function(b,a){Global.Boxy.iFrame(this.key,{actionName:"IFrame",controllerName:"Department",urlParameter:b,htmlattributes:{width:"540px",height:"250px"}},{newTitle:a+Global.Environment.get部门名称()})},hide:function(){Global.Boxy.hide(this.key)},setCloseVis:function(a){Global.Boxy.setCloseVis(this.key,a)}},add:function(){this.Boxy.init(null,"添加")},edit:function(a){this.Boxy.init(a,"修改")},Update:{dropdown:function(b,a){$("#部门ID").append('<option selected="selected" value="'+b+'">'+a+"</option>")},list:function(a){Global.MvcPager.Ajax.update(a)}},Delete:{boxyKey:"AdminiEmbedHandle-Department-Del",confirm:function(c,d){var a=this.boxyKey,b=Global.Boxy.Topics.Admin.department(d);Global.Boxy.confirm(a,{newTitle:"确认删除",dtHtml:"您确定删除"+b+"吗？",clickEvent:{oK:function(){AdminiEmbedHandle.Department.Delete.wait(c,b)},cancel:function(){Global.Boxy.hide(a)}}})},wait:function(c,b){var a=this.boxyKey;Global.Boxy.wait(a,{newTitle:"删除",dtHtml:"删除"+b});Global.AjaxServer.Post.json("/Department/Delete/"+c,null,function(c){if(c.result)Global.Boxy.success(a,{newTitle:"删除成功",dtHtml:b+"已删除成功.",boxyOptions:{afterHide:function(){AdminiEmbedHandle.Department.Update.list({waitType:"正在更新"})}}});else Global.Boxy.failure(a,{newTitle:"删除失败",dtHtml:b+"删除失败",newMessage:c.info})})}}},User:{Boxy:{key:"AdminiEmbedHandle-User-Edit",init:function(c,b,a){Global.Boxy.iFrame(this.key,{actionName:"IFrame",controllerName:"User",urlParameter:b,htmlattributes:{width:"600px",height:"350px"}},{newTitle:a+Global.Environment.get角色名称(c)+"账户"})},hide:function(){Global.Boxy.hide(this.key)},setCloseVis:function(a){Global.Boxy.setCloseVis(this.key,a)}},edit:function(b,a){this.Boxy.init(b,a,"修改")},Update:{list:function(a){Global.MvcPager.Ajax.update(a)}},Delete:{boxyKey:"AdminiEmbedHandle-User-Del",confirm:function(e,c,d){var a=this.boxyKey,b=Global.Boxy.Topics.Admin.user(e,d);Global.Boxy.confirm(a,{newTitle:"确认删除",dtHtml:"您确定删除"+b+"吗？",clickEvent:{oK:function(){AdminiEmbedHandle.User.Delete.wait(c,b)},cancel:function(){Global.Boxy.hide(a)}}})},wait:function(c,b){var a=this.boxyKey;Global.Boxy.wait(a,{newTitle:"删除",dtHtml:"删除"+b});Global.AjaxServer.Post.json("/User/Delete/"+c,null,function(c){if(c.result)Global.Boxy.success(a,{newTitle:"删除成功",dtHtml:b+"已删除成功.",boxyOptions:{afterHide:function(){AdminiEmbedHandle.User.Update.list({waitType:"正在更新"})}}});else Global.Boxy.failure(a,{newTitle:"删除失败",dtHtml:b+"删除失败",newMessage:c.info})})}}}}