Exemple #1
0
 void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             travelObj = e.Result.ToList();
             BindComboBox(e.Result.ToList(), e.pageCount);
             //获取城市分类触发绑定BindComboBox事件,这里无需//LoadArea();
         }
         else
         {
             BindComboBox(null, 0);
         }
     }
     catch (Exception ex)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     finally
     {
         this.RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }
Exemple #2
0
 void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             BindDataGrid(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindDataGrid(null, 0);
         }
     }
     catch (Exception ex)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }
 /// <summary>
 /// 查询出差方案
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void spo_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             BindDataGrid(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindDataGrid(null, 0);
         }
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
     catch (Exception ex)
     {
         Logger.Current.Log(ex.Message, Category.Debug, Priority.Low);
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
     }
 }
Exemple #4
0
        void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
        {

            try
            {
                if (e.Result != null)
                {
                    BindDataGrid(e.Result.ToList(), e.pageCount);
                }
                else
                {
                    BindDataGrid(null, 0);
                }
            }
            catch (Exception ex)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
        }
Exemple #5
0
 void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             travelObj = e.Result.ToList();
             BindDataGrid(e.Result.ToList(), e.pageCount);
             client.GetQueryPlanCityAsync(solutionsObj.TRAVELSOLUTIONSID, null);
         }
         else
         {
             BindDataGrid(null, 0);
         }
     }
     catch (Exception ex)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }
Exemple #6
0
 void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
 {
     try
     {
         HideProgressBasePage();
         if (e.Result != null)
         {
             travelObj = e.Result.ToList();
             //绑定会触发change事件,会查城市分类数据
             BindcmbSolution(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindcmbSolution(null, 0);
         }
     }
     catch (Exception ex)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }
Exemple #7
0
        void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
        {
            
            try
            {
                if (e.Result != null)
                {
                    BindDataGrid(e.Result.ToList(), e.pageCount);
                }
                else
                {
                    BindDataGrid(null, 0);
                }

            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
            }
        }
Exemple #8
0
 /// <summary>
 /// 查询出差方案
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void spo_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             BindDataGrid(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindDataGrid(null, 0);
         }
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
     catch (Exception ex)
     {
         Logger.Current.Log(ex.Message, Category.Debug, Priority.Low);
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
     }
 }
Exemple #9
0
        void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
        {

            try
            {
                if (e.Result != null)
                {
                    travelObj = e.Result.ToList();
                    BindComboBox(e.Result.ToList(), e.pageCount);
                    //获取城市分类触发绑定BindComboBox事件,这里无需//LoadArea();                    
                }
                else
                {
                    BindComboBox(null, 0);
                }
            }
            catch (Exception ex)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            finally
            {
                this.RefreshUI(RefreshedTypes.HideProgressBar);
            }
        }
Exemple #10
0
        void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
        {

            try
            {
                if (e.Result != null)
                {
                    isChange = false;
                    BindDataGrid(e.Result.ToList(), e.pageCount);
                }
                else
                {
                    BindDataGrid(null, 0);
                }


            }
            catch (Exception ex)
            {
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
        }
Exemple #11
0
        void client_GetTravelSolutionFlowCompleted(object sender, GetTravelSolutionFlowCompletedEventArgs e)
        {

            try
            {
                if (e.Result != null)
                {
                    travelObj = e.Result.ToList();
                    BindDataGrid(e.Result.ToList(), e.pageCount);
                    client.GetQueryPlanCityAsync(solutionsObj.TRAVELSOLUTIONSID, null);
                }
                else
                {
                    BindDataGrid(null, 0);
                }
            }
            catch (Exception ex)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
        }