Example #1
0
        void client_SalaryArchiveDeleteCompleted(object sender, SalaryArchiveDeleteCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "SALARYARCHIVE"),
Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
                //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "SALARYARCHIVE"));
                LoadData();
            }
        }
Example #2
0
 void client_SalaryArchiveDeleteCompleted(object sender, SalaryArchiveDeleteCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Error != null)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), "删除成功");
         //closeForm();                
     }
     EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
     entBrowser.BtnSaveSubmit.Visibility = Visibility.Collapsed;
     entBrowser.EntityToolbar.Visibility = Visibility.Collapsed;
     FormType = FormTypes.Browse;
     RefreshUI(RefreshedTypes.All);
     
 }