Ejemplo n.º 1
0
        void client_BatchAddPensionDetailCompleted(object sender, BatchAddPensionDetailCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                if (e.Result)
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "社保导入成功",
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    //return;
                }
                else
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "社保导入失败",
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    //return;
                }

                if (!string.IsNullOrEmpty(e.StrMsg))
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), e.StrMsg,
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    return;
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "社保导入失败,请联系管理员",
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                return;
            }
        }
Ejemplo n.º 2
0
        void client_BatchAddPensionDetailCompleted(object sender, BatchAddPensionDetailCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            if (e.Error == null)
            {
                if (e.Result)
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "社保导入成功",
                                                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    //return;
                }
                else
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "社保导入失败",
                                                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    //return;
                }

                if (!string.IsNullOrEmpty(e.StrMsg))
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), e.StrMsg,
                                                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                    return;
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "社保导入失败,请联系管理员",
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                return;
            }
        }