Пример #1
0
        private void LayThongTinKeHoach()
        {
            TinDungProcess process = new TinDungProcess();

            try
            {
                DataSet ds = process.getThongTinKeHoach(_kheUoc.MA_KHE_UOC, _ngayThuTien, Presentation.Process.Common.ClientInformation.MaDonVi);
                if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                {
                    grGocLaiTruocHan.ItemsSource = ds.Tables[0].DefaultView;
                    foreach (DataRow dr in ds.Tables[0].Rows)
                    {
                        _soTienGocConPhaiNop += Convert.ToDecimal(dr["kh_tra_goc"]);
                    }
                }
                else
                {
                    chkTraTruocHan.Tag = "False";
                }
            }
            catch (System.Exception ex)
            {
                CommonFunction.ThongBaoLoi(ex);
                LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
            }
            finally
            {
                process = null;
            }
        }