Example #1
0
        /// <summary>
        /// 获取部门下人员借款情况
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientFBA_GetDeptContactDetailListByPagingCompleted(object sender, GetDeptContactDetailListByPagingCompletedEventArgs e)
        {
            loadbar.Stop();
            if (e.Error == null)
            {
                ObservableCollection <V_DeptContactDetail> entList = new ObservableCollection <V_DeptContactDetail>();
                if (e.Result != null)
                {
                    entList = e.Result;
                }

                dgDeptQueryResult.ItemsSource = entList;
                dataPager.PageCount           = e.pageCount;
                tbNormalMoney.Text            = e.dTotalNormalBorrowMoney.ToString("N");
                tbSpecialMoney.Text           = e.dTotalSpecialMoney.ToString("N");
                tbReserveMoney.Text           = e.dTotalReserveMoney.ToString("N");
                tbTotalMoney.Text             = (e.dTotalNormalBorrowMoney + e.dTotalReserveMoney + e.dTotalSpecialMoney).ToString("N");
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "读取数据失败!" + e.Error.Message);
            }
        }
Example #2
0
        /// <summary>
        /// 获取部门下人员借款情况
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void clientFBA_GetDeptContactDetailListByPagingCompleted(object sender, GetDeptContactDetailListByPagingCompletedEventArgs e)
        {
            loadbar.Stop();
            if (e.Error == null)
            {
                ObservableCollection<V_DeptContactDetail> entList = new ObservableCollection<V_DeptContactDetail>();
                if (e.Result != null)
                {
                    entList = e.Result;
                }

                dgDeptQueryResult.ItemsSource = entList;
                dataPager.PageCount = e.pageCount;
                tbNormalMoney.Text = e.dTotalNormalBorrowMoney.ToString("N");
                tbSpecialMoney.Text = e.dTotalSpecialMoney.ToString("N");
                tbReserveMoney.Text = e.dTotalReserveMoney.ToString("N");
                tbTotalMoney.Text = (e.dTotalNormalBorrowMoney + e.dTotalReserveMoney + e.dTotalSpecialMoney).ToString("N");
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "读取数据失败!" + e.Error.Message);
            }
        }