コード例 #1
0
 void client_EmployeeBalancePostDeleteCompleted(object sender, EmployeeBalancePostDeleteCompletedEventArgs 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("CONFIRM"), MessageIcon.Information);
         LoadData();
     }
 }
コード例 #2
0
ファイル: EmployeeBalancePost.xaml.cs プロジェクト: JuRogn/OA
 void client_EmployeeBalancePostDeleteCompleted(object sender, EmployeeBalancePostDeleteCompletedEventArgs 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("CONFIRM"), MessageIcon.Information);               
         LoadData();
     }
 }
コード例 #3
0
        void client_EmployeeBalancePostDeleteCompleted(object sender, EmployeeBalancePostDeleteCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            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("CONFIRM"), MessageIcon.Information);
                if (EmployeeAddBalancePost != null)
                {
                    EmployeeAddBalancePost.CHECKSTATE = "1";
                }
                FormType = FormTypes.Browse;
                RefreshUI(RefreshedTypes.All);
                try
                {
                    EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
                    entBrowser.Close();
                }
                catch (Exception ex)
                {

                }
            }
        }