Esempio n. 1
0
        //获取数据
        void client_GetBudgetAccountByPersonCompleted(object sender, GetBudgetAccountByPersonCompletedEventArgs e)
        {
            try
            {
                RefreshUI(RefreshedTypes.HideProgressBar);
                ObservableCollection <T_FB_BUDGETACCOUNT> subjectInfoData = e.Result;

                if (subjectInfoData != null)
                {
                    dgvSubjectList.ItemsSource = subjectInfoData;
                }
                else
                {
                    dgvSubjectList.ItemsSource = null;
                }
                loadbar.Stop();
            }
            catch (Exception ex)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), "获取科目信息错误,请联系管理员" + ex.ToString(), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }
        }
Esempio n. 2
0
        //获取数据
        void client_GetBudgetAccountByPersonCompleted(object sender, GetBudgetAccountByPersonCompletedEventArgs e)
        {
            try
            {
                RefreshUI(RefreshedTypes.HideProgressBar);
                ObservableCollection<T_FB_BUDGETACCOUNT> subjectInfoData = e.Result;

                if (subjectInfoData != null)
                {
                    dgvSubjectList.ItemsSource = subjectInfoData;
                }
                else
                {
                    dgvSubjectList.ItemsSource = null;
                }
                loadbar.Stop();
            }
            catch (Exception ex)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), "获取科目信息错误,请联系管理员"+ex.ToString(), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);              
            }
        }