Exemplo n.º 1
0
        /// <summary>
        /// 加载销假记录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_EmployeeCancelLeavePagingCompleted(object sender, EmployeeCancelLeavePagingCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                List <T_HR_EMPLOYEECANCELLEAVE> list = new List <T_HR_EMPLOYEECANCELLEAVE>();
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                dgEmpLeaveRdList.ItemsSource = list;

                dataPager.PageCount = e.pageCount;
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }

            loadbar.Stop();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 加载销假记录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_EmployeeCancelLeavePagingCompleted(object sender, EmployeeCancelLeavePagingCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                List<T_HR_EMPLOYEECANCELLEAVE> list = new List<T_HR_EMPLOYEECANCELLEAVE>();
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                dgEmpLeaveRdList.ItemsSource = list;

                dataPager.PageCount = e.pageCount;
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }

            loadbar.Stop();
        }