Exemple #1
0
        void client_EmployeeEntryDeleteCompleted(object sender, EmployeeEntryDeleteCompletedEventArgs e)
        {
            //2012-8-15
            //返回错误则提示信息
            if (e.Result == false)
            {
                Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("DALETEFAILED"));
                return;
            }
            if (e.Error != null && e.Error.Message != "")
            {
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);

                
            }
            else
            {
                //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "EMPLOYEEENTRY"));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESS"),
            Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
                LoadData();
                //  perclient.SysUserBatchDelAsync(employeeids);
            }
        }
Exemple #2
0
 void client_EmployeeEntryDeleteCompleted(object sender, EmployeeEntryDeleteCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
       Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESS"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
         entBrowser.Close();
     }
     FormType = FormTypes.Browse;
     RefreshUI(RefreshedTypes.All);
 }