Example #1
0
 private void SysRoleClient_SysRoleBatchDelCompleted(object sender, SysRoleBatchDelCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result == "")
         {
             ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "删除数据成功!", Utility.GetResourceStr("CONFIRMBUTTON"));
             this.LoadData();
         }
         else
         {
             if (e.Result == "error")
             {
                 SMT.SAAS.Main.CurrentContext.AppContext.logAndShow("Views/SysRole.xaml--SysRoleDelete" + e.Error.Message);
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "系统出现错误,请与管理员联系!", Utility.GetResourceStr("CONFIRMBUTTON"));
                 return;
             }
             else
             {
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Result.ToString(), Utility.GetResourceStr("CONFIRMBUTTON"));
                 this.LoadData();
             }
         }
     }
 }
Example #2
0
 void SysRoleClient_SysRoleBatchDelCompleted(object sender, SysRoleBatchDelCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result == "")
         {
             ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "删除数据成功!", Utility.GetResourceStr("CONFIRMBUTTON"));
             this.LoadData();
         }
         else
         {
             if (e.Result == "error")
             {
                 SMT.SAAS.Application.ExceptionManager.SendException("角色管理", "Views/SysRole.xaml--SysRoleDelete" + e.Error.Message);
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "系统出现错误,请与管理员联系!", Utility.GetResourceStr("CONFIRMBUTTON"));
                 return;
             }
             else
             {
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Result.ToString(), Utility.GetResourceStr("CONFIRMBUTTON"));
                 this.LoadData();
             }
         }
     }
 }
Example #3
0
 void SysRoleClient_SysRoleBatchDelCompleted(object sender, SysRoleBatchDelCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result == "")
         {
             ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "删除数据成功!", Utility.GetResourceStr("CONFIRMBUTTON"));
             this.LoadData();
         }
         else
         {
             if (e.Result == "error")
             {
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "系统出现错误,请与管理员联系!", Utility.GetResourceStr("CONFIRMBUTTON"));
                 return;
             }
             else
             {
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Result.ToString(), Utility.GetResourceStr("CONFIRMBUTTON"));
                 this.LoadData();
             }
         }
     }
 }
Example #4
0
 void SysRoleClient_SysRoleBatchDelCompleted(object sender, SysRoleBatchDelCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result == "")
         {
             ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "删除数据成功!", Utility.GetResourceStr("CONFIRMBUTTON"));
             this.LoadData();
         }
         else
         {
             if (e.Result == "error")
             {
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "系统出现错误,请与管理员联系!", Utility.GetResourceStr("CONFIRMBUTTON"));
                 return;
             }
             else
             {
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Result.ToString(), Utility.GetResourceStr("CONFIRMBUTTON"));
                 this.LoadData();
             }
         }
     }
 }
Example #5
0
 private void SysRoleClient_SysRoleBatchDelCompleted(object sender, SysRoleBatchDelCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Result == "")
         {
             ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "删除数据成功!", Utility.GetResourceStr("CONFIRMBUTTON"));
             this.LoadData();
         }
         else
         {
             if (e.Result == "error")
             {
                 SMT.SAAS.Application.ExceptionManager.SendException("角色管理", "Views/SysRole.xaml--SysRoleDelete" + e.Error.Message);
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), "系统出现错误,请与管理员联系!", Utility.GetResourceStr("CONFIRMBUTTON"));
                 return;
             }
             else
             {
                 ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), e.Result.ToString(), Utility.GetResourceStr("CONFIRMBUTTON"));              
                 this.LoadData();
             }
         }
     }
 }