コード例 #1
0
ファイル: SysRole.xaml.cs プロジェクト: jjg0519/OA
 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();
             }
         }
     }
 }
コード例 #2
0
ファイル: UserRoleManagement.xaml.cs プロジェクト: jjg0519/OA
 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();
             }
         }
     }
 }
コード例 #3
0
ファイル: UserRoleManagement.xaml.cs プロジェクト: jjg0519/OA
 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();
             }
         }
     }
 }
コード例 #4
0
ファイル: UserRoleManagement.xaml.cs プロジェクト: JuRogn/OA
 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();
             }
         }
     }
 }
コード例 #5
0
ファイル: SysRole.xaml.cs プロジェクト: fuhongliang/oa
 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();
             }
         }
     }
 }