Example #1
0
        /// <summary>
        /// 获取城市
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetAreaCityWithPagingCompleted(object sender, GetAreaCityWithPagingCompletedEventArgs e)
        {
            List <T_OA_AREACITY> list = new List <T_OA_AREACITY>();

            if (e.Error != null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                return;
            }
            else
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGridCity.ItemsSource = list;
            }
        }
Example #2
0
        /// <summary>
        /// 获取城市
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetAreaCityWithPagingCompleted(object sender, GetAreaCityWithPagingCompletedEventArgs e)
        {
            List <T_HR_AREACITY> list = new List <T_HR_AREACITY>();

            if (e.Error != null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                return;
            }
            else
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGridCity.ItemsSource = list;

                dataPagerCity.PageCount = e.pageCount;
            }
        }
Example #3
0
        /// <summary>
        /// 获取城市
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetAreaCityWithPagingCompleted(object sender, GetAreaCityWithPagingCompletedEventArgs e)
        {
            List<T_HR_AREACITY> list = new List<T_HR_AREACITY>();
            if (e.Error != null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                return;
            }
            else
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGridCity.ItemsSource = list;

                dataPagerCity.PageCount = e.pageCount;
            }

        }
Example #4
0
        /// <summary>
        /// 获取城市
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetAreaCityWithPagingCompleted(object sender, GetAreaCityWithPagingCompletedEventArgs e)
        {
            List<T_OA_AREACITY> list = new List<T_OA_AREACITY>();
            if (e.Error != null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                return;
            }
            else
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGridCity.ItemsSource = list;


            }

        }