예제 #1
0
        void client_UpdateTravleSolutionCompleted(object sender, UpdateTravleSolutionCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            try
            {
                if (e.Result ==0)
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"));
                }
                else
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MODIFYSUCCESSED"));
                    if (GlobalFunction.IsSaveAndClose(saveType))
                    {
                        RefreshUI(saveType);
                    }
                    else
                    {
                        action = FormTypes.Edit;
                        EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
                        entBrowser.FormType = FormTypes.Edit;

                        RefreshUI(RefreshedTypes.All);
                    }
                }

            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
예제 #2
0
        void client_UpdateTravleSolutionCompleted(object sender, UpdateTravleSolutionCompletedEventArgs e)
        {
            RefreshUI(RefreshedTypes.HideProgressBar);
            BtnSave.IsEnabled = true;
            try
            {
                if (e.Result == 0)
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("没有修改数据!"), 
                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                }
                else
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MODIFYSUCCESSED"),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
                    //action = FormTypes.Edit;
                    //this.BtnSave.IsEnabled = false;
                    //this.cmbSolution.IsEnabled = false;//禁用选择出差方案控件
                    //RefreshUI(RefreshedTypes.All);
                    //isChange = false;
                }

            }
            catch (Exception ex)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            action = FormTypes.Edit;
            this.BtnSave.IsEnabled = false;
            this.cmbSolution.IsEnabled = false;//禁用选择出差方案控件
            RefreshUI(RefreshedTypes.All);
            isChange = false;
            LoadSolutionInfos();
        }