Exemplo n.º 1
0
        public DataSet GetTaiKhoanHachToan(string maDoiTuong, string maDonVi)
        {
            // Kiểm tra kết nối, server, service trước khi request
            TruyVanServiceClient client = null;

            Common.Utilities.IsRequestAllow(ApplicationConstant.SystemService.TruyVanService.layGiaTri());

            client = TruyVanServiceClient(ApplicationConstant.SystemService.TruyVanService);

            Common.Utilities.IsRequestAllow(ApplicationConstant.SystemService.TruyVanService.layGiaTri());

            // Khởi tạo và gán các giá trị cho request
            TruyVanServiceRef.TruyVanRequest request = Common.Utilities.PrepareRequest(new TruyVanServiceRef.TruyVanRequest());

            TruyVanServiceRef.TruyVanResponse response = new TruyVanServiceRef.TruyVanResponse();
            DataTable dt = null;

            LDatatable.MakeParameterTable(ref dt);
            LDatatable.AddParameter(ref dt, "@MA_PHAN_HE", "STRING", DatabaseConstant.Module.DMDC.getValue());
            LDatatable.AddParameter(ref dt, "@MA_DTUONG", "STRING", maDoiTuong);
            LDatatable.AddParameter(ref dt, "@MA_DON_VI", "STRING", maDonVi);

            request.dtThamSo    = dt;
            request.objectName  = "INQ.CT.BIEU_PHI";
            request.inquiryName = "TAI_KHOAN_HACH_TOAN";

            // Lấy kết quả trả về
            response = client.TruyVanMessage(request);

            // Kiểm tra kết quả trả về
            Common.Utilities.ValidResponse(request, response);

            return(response.dsResult);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Lấy thông tin giao dịch khách hàng, hợp đồng tín dụng, tiền gửi tiết kiệm
        /// </summary>
        /// <param name="id">ID khách hàng</param>
        /// <returns></returns>
        public DataSet GetThongTinGiaoDichTietKiem(int id, string maSoTG)
        {
            // Kiểm tra kết nối, server, service trước khi request
            Common.Utilities.IsRequestAllow(ApplicationConstant.SystemService.TruyVanService.layGiaTri());

            //Khởi tạo và gán các giá trị cho request
            TruyVanServiceRef.TruyVanRequest  request  = Common.Utilities.PrepareRequest(new TruyVanServiceRef.TruyVanRequest());
            TruyVanServiceRef.TruyVanResponse response = new TruyVanServiceRef.TruyVanResponse();
            DataTable dt = null;

            LDatatable.MakeParameterTable(ref dt);
            LDatatable.AddParameter(ref dt, "@ID_TIEN_GUI", "INT", id.ToString());
            LDatatable.AddParameter(ref dt, "@MA_TIEN_GUI", "INT", maSoTG);

            request.dtThamSo    = dt;
            request.inquiryName = "DANHSACH.GIAODICH";
            request.objectName  = "INQ.KTDL.KHTV_GDICH_TIETKIEM";

            // Lấy kết quả trả về
            TruyVanServiceClient client = TruyVanServiceClient(ApplicationConstant.SystemService.TruyVanService);

            response = client.TruyVanMessage(request);

            // Kiểm tra kết quả trả về
            Common.Utilities.ValidResponse(request, response);

            return(response.dsResult);
        }
Exemplo n.º 3
0
        public DataSet GetTreeDonVi(string sIDDonVi)
        {
            // Kiểm tra kết nối, server, service trước khi request
            Common.Utilities.IsRequestAllow(ApplicationConstant.SystemService.TruyVanService.layGiaTri());

            // Khởi tạo và gán các giá trị cho request
            TruyVanServiceRef.TruyVanRequest request = Common.Utilities.PrepareRequest(new TruyVanServiceRef.TruyVanRequest());

            TruyVanServiceRef.TruyVanResponse response = new TruyVanServiceRef.TruyVanResponse();
            DataTable dt = null;

            LDatatable.MakeParameterTable(ref dt);
            LDatatable.AddParameter(ref dt, "@ID_DON_VI", "STRING", sIDDonVi);


            request.dtThamSo    = dt;
            request.objectName  = "INQ.DS.QLTS_DUNG_CHUNG";
            request.inquiryName = "TREE_DVI_PGD";

            // Lấy kết quả trả về
            response = ClientTruyVan.TruyVanMessage(request);
            // Kiểm tra kết quả trả về
            Common.Utilities.ValidResponse(request, response);

            return(response.dsResult);
        }
Exemplo n.º 4
0
        public DataSet GetTreeViewNhomTaiSan()
        {
            //Kiem tra ket noi server, service truoc khi request
            Common.Utilities.IsRequestAllow(ApplicationConstant.SystemService.TruyVanService.layGiaTri());
            TruyVanRequest  request      = Common.Utilities.PrepareRequest(new TruyVanRequest());
            TruyVanResponse response     = new TruyVanResponse();
            DataSet         dsNhomTaisan = null;

            try
            {
                DataTable dtThamSo = null;
                LDatatable.MakeParameterTable(ref dtThamSo);
                LDatatable.AddParameter(ref dtThamSo, "", "", "");
                request.dtThamSo    = dtThamSo;
                request.objectName  = "INQ.TS_PLOAI_TS";
                request.inquiryName = "TREE_PLOAI_TS";

                //make a call to service client
                response = ClientTruyVan.TruyVanMessage(request);

                //kiem tra ket qua tra ve
                Common.Utilities.ValidResponse(request, response);
                if (response != null && response.ResponseStatus == ApplicationConstant.ResponseStatus.THANH_CONG)
                {
                    dsNhomTaisan = response.dsResult;
                }
                return(dsNhomTaisan);
            }
            catch (Exception ex)
            {
                LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex);
                return(null);
            }
        }
Exemplo n.º 5
0
        private void LoadgrdDSLoaiTK()
        {
            Mouse.OverrideCursor = Cursors.Wait;
            try
            {
                DataTable dt = null;
                LDatatable.MakeParameterTable(ref dt);


                LDatatable.AddParameter(ref dt, "@INP_USER", "string", ClientInformation.TenDangNhap);
                LDatatable.AddParameter(ref dt, "@MA_DVI_QLY", "string", ClientInformation.MaDonVi);
                LDatatable.AddParameter(ref dt, "@StartRow", "INT", StartRow.ToString());
                LDatatable.AddParameter(ref dt, "@EndRow", "INT", EndRow.ToString());

                Presentation.Process.KhaiThacDuLieuProcess process = new Presentation.Process.KhaiThacDuLieuProcess();
                DataSet ds = process.GetDanhSachLoaiTK(dt);
                if (ds != null && ds.Tables.Count > 0)
                {
                    grdDSLoaiTK.ItemsSource = ds.Tables[0].DefaultView;
                }
                else
                {
                    grdDSLoaiTK.ItemsSource = null;
                }
            }
            catch (Exception ex)
            {
                CommonFunction.ThongBaoLoi(ex);
                LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex);
            }

            Mouse.OverrideCursor = Cursors.Arrow;
        }
Exemplo n.º 6
0
 private void LoadDuLieu()
 {
     Mouse.OverrideCursor = Cursors.Wait;
     try
     {
         NhanSuProcess processNhanSu = new NhanSuProcess();
         int           idDuAn        = Convert.ToInt32(lstSourceDuAn[cmbDuAn.SelectedIndex].KeywordStrings[1]);
         DataTable     dt            = null;
         LDatatable.MakeParameterTable(ref dt);
         LDatatable.AddParameter(ref dt, "@MA_DVI", "STRING", ClientInformation.MaDonViQuanLy);
         LDatatable.AddParameter(ref dt, "@ID_DU_AN", "STRING", idDuAn.ToString());
         DataSet ds = processNhanSu.GetDanhSachQuanLyDuAn(dt);
         if (ds != null && ds.Tables.Count > 0)
         {
             dt = ds.Tables[0];
             grid.DataContext = dt.DefaultView;
         }
         else
         {
             dt.Rows.Clear();
             grid.DataContext = null;
         }
     }
     catch (Exception ex)
     {
         LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
     }
     finally
     {
         Mouse.OverrideCursor = Cursors.Arrow;
     }
 }
 /// <summary>
 /// Get ngay cuoi cung tong hop
 /// </summary>
 private void GetLastDate()
 {
     try
     {
         //Khởi tạo request
         DataTable dt = null;
         LDatatable.MakeParameterTable(ref dt);
         foreach (AutoCompleteCheckBox ChiNhanh in lstSourceChiNhanh.Where(f => f.CheckedMember == true))
         {
             LDatatable.AddParameter(ref dt, "@MaChiNhanh", "STRING", ChiNhanh.ValueMember[INT_ZERO].ToString());
         }
         TruyVanProcess truyVanProcess = new TruyVanProcess();
         DataSet        ds             = truyVanProcess.TruyVanUDTT(MAX_DATE_TRANSACTION, dt);
         if (!ds.IsNullOrEmpty() && INT_ZERO < ds.Tables.Count && INT_ZERO < ds.Tables[INT_ZERO].Rows.Count)
         {
             raddtDenNgay.Value = LDateTime.StringToDate(ds.Tables[INT_ZERO].Rows[INT_ZERO][INT_ZERO].ToString(), ApplicationConstant.defaultDateTimeFormat);
         }
         else
         {
             raddtDenNgay.Value = DateTime.Now;
         }
         raddtTuNgay.Value = LDateTime.GetFirstDateOfMonth(raddtDenNgay.Value.GetValueOrDefault());
     }
     catch (Exception ex)
     {
         raddtDenNgay.Value = DateTime.Now;
         raddtTuNgay.Value  = LDateTime.GetFirstDateOfMonth(raddtDenNgay.Value.GetValueOrDefault());
         LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex);
     }
 }
Exemplo n.º 8
0
        /// <summary>
        /// Lay danh sach tai khoan hach toan
        /// </summary>
        /// <param name="MaNhomTS"></param>
        /// <returns></returns>

        public DataSet GetDSTaiKhoanHachToan(string MaNhomTS)
        {
            // Kiểm tra kết nối, server, service trước khi request
            Common.Utilities.IsRequestAllow(ApplicationConstant.SystemService.TruyVanService.layGiaTri());

            // Khởi tạo và gán các giá trị cho request
            TruyVanRequest request = Common.Utilities.PrepareRequest(new TruyVanServiceRef.TruyVanRequest());

            TruyVanResponse response = new TruyVanServiceRef.TruyVanResponse();
            DataTable       dt       = null;

            LDatatable.MakeParameterTable(ref dt);
            if (MaNhomTS.Equals(""))
            {
                LDatatable.AddParameter(ref dt, "", "", "");
                request.dtThamSo    = dt;
                request.objectName  = "INQ.TS.TAI_KHOAN";
                request.inquiryName = "TAI_KHOAN";
            }
            else
            {
                LDatatable.AddParameter(ref dt, "@MA_NHOM_TS", "String", MaNhomTS);
                request.dtThamSo    = dt;
                request.objectName  = "INQ.TS.TAI_KHOAN";
                request.inquiryName = "MA_NHOM_TS";
            }

            // Lấy kết quả trả về
            response = ClientTruyVan.TruyVanMessage(request);

            // Kiểm tra kết quả trả về
            Common.Utilities.ValidResponse(request, response);

            return(response.dsResult);
        }
        void LoadDuLieu()
        {
            try
            {
                string sMaTrangThaiNVu = ucTrangThaiNVu.GetItemsSelected();
                if (sMaTrangThaiNVu.Equals("NULL"))
                {
                    sMaTrangThaiNVu = "(''CDU'',''DDU'',''TCD'',''THD'')";
                }
                #region Điều kiện tìm kiếm
                RadTreeViewItem item = tvwTaiSan.SelectedItem as RadTreeViewItem;
                if (item == null)
                {
                    Mouse.OverrideCursor = Cursors.Arrow;
                    return;
                }
                string loaiDonVi = item.Uid.ToString();
                string maDonVi   = item.Tag.ToString();
                #endregion

                // Phân trang
                int       StartRow       = 1;
                int       EndRow         = ClientInformation.SoLuongBanGhi;
                int       CurrentPagging = 1;
                int       PaggingSize    = ClientInformation.SoLuongBanGhi;
                DataTable dt             = null;
                LDatatable.MakeParameterTable(ref dt);
                LDatatable.AddParameter(ref dt, "@INP_MA_TRANG_THAI_NGHIEP_VU", "string", sMaTrangThaiNVu);
                LDatatable.AddParameter(ref dt, "@INP_SO_HDTC", "string", txtSoHD.Text);
                LDatatable.AddParameter(ref dt, "@INP_MA_KHANG", "string", txtMaKH.Text);
                LDatatable.AddParameter(ref dt, "@INP_TEN_KHANG", "string", txtTenKH.Text);
                LDatatable.AddParameter(ref dt, "@INP_NGAY_HOP_DONG", "string", raddtNgayHopDong.Value == null? "":raddtNgayHopDong.Value.Value.ToString("yyyyMMdd"));
                LDatatable.AddParameter(ref dt, "@INP_USER", "string", ClientInformation.TenDangNhap);
                LDatatable.AddParameter(ref dt, "@MA_DVI_QLY", "string", ClientInformation.MaDonViQuanLy);
                LDatatable.AddParameter(ref dt, "@MA_NNGU", "string", ClientInformation.NgonNgu);
                LDatatable.AddParameter(ref dt, "@StartRow", "string", StartRow.ToString());
                LDatatable.AddParameter(ref dt, "@EndRow", "string", EndRow.ToString());
                DataSet ds = new TaiSanDamBaoProcess().GetDanhSachHopDongTheChapTDTD(dt);

                if (ds != null && ds.Tables.Count > 0)
                {
                    grDSTaiSan.DataContext = ds.Tables[0].DefaultView;
                }
                else
                {
                    grDSTaiSan.Items.Clear();
                }
            }
            catch (System.Exception ex)
            {
                LMessage.ShowMessage("M.DungChung.LoiChung", LMessage.MessageBoxType.Error);
                LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex);
            }
            finally
            {
                Cursor = Cursors.Arrow;
            }
        }
Exemplo n.º 10
0
        public DataSet GetHanMucChiTiet(string maLoaiDTuong, string maDTuong, string module, string tinhNang)
        {
            TruyVanServiceClient client   = null;
            TruyVanRequest       request  = null;
            TruyVanResponse      response = null;

            try
            {
                // Kiểm tra kết nối, server, service trước khi request
                Common.Utilities.IsRequestAllow(ApplicationConstant.SystemService.TruyVanService.layGiaTri());

                client   = TruyVanServiceClient(ApplicationConstant.SystemService.TruyVanService);
                request  = Common.Utilities.PrepareRequest(new TruyVanServiceRef.TruyVanRequest());
                response = new TruyVanServiceRef.TruyVanResponse();

                //Khởi tạo request
                DataTable dt = null;
                LDatatable.MakeParameterTable(ref dt);
                LDatatable.AddParameter(ref dt, "@MA_DTUONG_LOAI", "STRING", maLoaiDTuong);
                LDatatable.AddParameter(ref dt, "@MA_DTUONG", "STRING", maDTuong);
                LDatatable.AddParameter(ref dt, "@MODULE", "STRING", module);
                LDatatable.AddParameter(ref dt, "@TINH_NANG", "STRING", tinhNang);

                request.dtThamSo    = dt;
                request.objectName  = "INQ.DS.HAN_MUC";
                request.inquiryName = "CHI_TIET";

                // make a call to service client here
                response = client.TruyVanMessage(request);

                //Kiểm tra kết quả trả về
                Common.Utilities.ValidResponse(request, response);

                DataSet ds = response.dsResult;
                return(ds);
            }
            catch (Exception ex)
            {
                LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
                throw ex;
            }
            finally
            {
                if (client.State == CommunicationState.Faulted)
                {
                    client.Abort();
                }
                else
                {
                    client.Close();
                }

                client   = null;
                request  = null;
                response = null;
            }
        }
Exemplo n.º 11
0
        /// <summary>
        /// Tạo mã khách hàng
        /// </summary>
        /// <param name="loaiKH"></param>
        /// <param name="ngayThamGia"></param>
        /// <returns></returns>
        private string TaoMaNhomNSD()
        {
            DataServices.Utilities.DS_SinhMa process = new DataServices.Utilities.DS_SinhMa();
            DataTable dt = null;

            LDatatable.MakeParameterTable(ref dt);
            LDatatable.AddParameter(ref dt, "@TenBang", "STRING", DatabaseConstant.Table.HT_NHNSD.getValue());
            LDatatable.AddParameter(ref dt, "@TenTruong", "STRING", "MA_NHNSD");
            return(process.TaoMa("MA_NHNSD", dt));
        }
        private void SetFormData()
        {
            Mouse.OverrideCursor = Cursors.Wait;
            //lstTSDB = new List<TDTD_TAI_SAN_DAM_BAO>();
            try
            {
                DataTable dt = null;
                LDatatable.MakeParameterTable(ref dt);
                LDatatable.AddParameter(ref dt, "@INP_IDHDTC", "string", idHDTC.ToString());
                DataSet ds = new TaiSanDamBaoProcess().GetHopDongTheChapTDTD(dt);
                if (!ds.IsNullOrEmpty() && ds.Tables.Count > 1)
                {
                    dt = ds.Tables[0];

                    idHDTC               = Convert.ToInt32(dt.Rows[0]["ID"]);
                    txtSoHopDong.Text    = dt.Rows[0]["MA_HDTC"].ToString();
                    txtMaKH.Text         = dt.Rows[0]["MA_KHANG"].ToString();
                    lblTTinKHang.Content = dt.Rows[0]["TEN_KHANG"].ToString();
                    teldtNgayCNhat.Value = LDateTime.StringToDate(dt.Rows[0]["NGAY_HDTC"].ToString(), ApplicationConstant.defaultDateTimeFormat);
                    txtDienGiai.Text     = dt.Rows[0]["DIEN_GIAI"].ToString();
                    tThai_NVu            = dt.Rows[0]["TTHAI_NVU"].ToString();
                    lblTrangThai.Content = BusinessConstant.layNgonNguNghiepVu(tThai_NVu);
                    maDviQLy             = dt.Rows[0]["MA_DVI_QLY"].ToString();
                    maDViTao             = dt.Rows[0]["MA_DVI_TAO"].ToString();
                    txtNguoiLap.Text     = dt.Rows[0]["NGUOI_NHAP"].ToString();
                    if (dt.Rows[0]["NGUOI_CNHAT"] != DBNull.Value)
                    {
                        txtNguoiCapNhat.Text = dt.Rows[0]["NGUOI_CNHAT"].ToString();
                    }
                    teldtNgayNhap.Value = LDateTime.StringToDate(dt.Rows[0]["NGAY_NHAP"].ToString(), ApplicationConstant.defaultDateTimeFormat);
                    if (dt.Rows[0]["NGAY_CNHAT"] != DBNull.Value)
                    {
                        teldtNgayCNhat.Value = LDateTime.StringToDate(dt.Rows[0]["NGAY_CNHAT"].ToString(), ApplicationConstant.defaultDateTimeFormat);
                    }
                    txtTrangThai.Text = BusinessConstant.layNgonNguSuDung(dt.Rows[0]["TTHAI_BGHI"].ToString());
                    dt = ds.Tables[1];

                    lstTSDB = dt.Rows.OfType <DataRow>().ToList();

                    raddgrDSachTSDB.ItemsSource = null;
                    raddgrDSachTSDB.ItemsSource = lstTSDB;

                    SetGtriTong(lstTSDB);
                }
            }
            catch (Exception ex)
            {
                LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
                throw ex;
            }
            finally
            {
                Mouse.OverrideCursor = Cursors.Arrow;
            }
        }
Exemplo n.º 13
0
        public DataSet GetDanhSachHoTro(string maDangNhap, string maPhanHe)
        {
            TruyVanServiceClient client   = null;
            TruyVanRequest       request  = null;
            TruyVanResponse      response = null;

            try
            {
                // Kiểm tra kết nối, server, service trước khi request
                Common.Utilities.IsRequestAllow(ApplicationConstant.SystemService.TruyVanService.layGiaTri());

                client   = TruyVanServiceClient(ApplicationConstant.SystemService.TruyVanService);
                request  = Common.Utilities.PrepareRequest(new TruyVanServiceRef.TruyVanRequest());
                response = new TruyVanServiceRef.TruyVanResponse();

                //Khởi tạo request
                DataTable dt = null;
                LDatatable.MakeParameterTable(ref dt);
                LDatatable.AddParameter(ref dt, "@NSD", "STRING", maDangNhap);
                LDatatable.AddParameter(ref dt, "@MA_PHAN_HE", "STRING", maPhanHe);

                request.dtThamSo    = dt;
                request.objectName  = "INQ.HO_TRO";
                request.inquiryName = "DANH_SACH";

                // make a call to service client here
                response = client.TruyVanMessage(request);

                //Kiểm tra kết quả trả về
                Common.Utilities.ValidResponse(request, response);

                DataSet ds = response.dsResult;
                return(ds);
            }
            catch (Exception ex)
            {
                LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
                throw ex;
            }
            finally
            {
                if (client.State == CommunicationState.Faulted)
                {
                    client.Abort();
                }
                else
                {
                    client.Close();
                }

                client   = null;
                request  = null;
                response = null;
            }
        }
        void LoadDuLieuPhanTrang()
        {
            try
            {
                string sMaTrangThaiNVu = ucTrangThaiNVu.GetItemsSelected();
                #region Điều kiện tìm kiếm
                RadTreeViewItem item      = tvwTaiSan.SelectedItem as RadTreeViewItem;
                string          loaiDonVi = item.Uid.ToString();
                string          maDonVi   = item.Tag.ToString();
                #endregion

                // Phân trang
                DataTable dt = null;
                LDatatable.MakeParameterTable(ref dt);
                LDatatable.AddParameter(ref dt, "@INP_MA_TRANG_THAI_NGHIEP_VU", "string", sMaTrangThaiNVu);
                LDatatable.AddParameter(ref dt, "@INP_SO_HDTC", "string", txtSoHD.Text);
                LDatatable.AddParameter(ref dt, "@INP_MA_KHANG", "string", txtMaKH.Text);
                LDatatable.AddParameter(ref dt, "@INP_TEN_KHANG", "string", txtTenKH.Text);
                LDatatable.AddParameter(ref dt, "@INP_USER", "string", ClientInformation.TenDangNhap);
                LDatatable.AddParameter(ref dt, "@MA_DVI_QLY", "string", ClientInformation.MaDonViQuanLy);
                LDatatable.AddParameter(ref dt, "@StartRow", "string", StartRow.ToString());
                LDatatable.AddParameter(ref dt, "@EndRow", "string", EndRow.ToString());
                DataSet ds = new TaiSanDamBaoProcess().GetDanhSachHopDongTheChap(dt);

                if (ds != null && ds.Tables.Count > 0)
                {
                    DataTable serverDataTable = ds.Tables[0];
                    int       totalRecord     = Int32.Parse(ds.Tables[1].Rows[0][0].ToString());
                    decimal   totalSum        = Decimal.Parse(ds.Tables[2].Rows[0][0].ToString());
                    DataTable clientDataTable = CommonFunction.BuildClientDataTable(serverDataTable, CurrentPagging, PaggingSize, totalRecord);

                    //grdKheUocDS.ItemsSource = ds.Tables["DANH_SACH"].DefaultView;
                    grDSTaiSan.ItemsSource = clientDataTable.DefaultView;
                    grDSTaiSan.SelectedItems.Clear();
                    lblSumKhachHang.Content = totalRecord.ToString();
                    lblSumDuNo.Content      = totalSum.ToString("N0");
                }
            }
            catch (System.Exception ex)
            {
                LMessage.ShowMessage("M.DungChung.LoiChung", LMessage.MessageBoxType.Error);
                LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex);
            }
            finally
            {
                Cursor = Cursors.Arrow;
            }
        }
Exemplo n.º 15
0
        private void LoadCheckBox(string maLoaiTK, string maTK)
        {
            Mouse.OverrideCursor = Cursors.Wait;
            try
            {
                DataTable dt = null;
                LDatatable.MakeParameterTable(ref dt);


                LDatatable.AddParameter(ref dt, "@INP_USER", "string", ClientInformation.TenDangNhap);
                LDatatable.AddParameter(ref dt, "@MA_DVI_QLY", "string", ClientInformation.MaDonVi);
                LDatatable.AddParameter(ref dt, "@StartRow", "INT", StartRow.ToString());
                LDatatable.AddParameter(ref dt, "@EndRow", "INT", EndRow.ToString());
                LDatatable.AddParameter(ref dt, "@INP_USER", "string", ClientInformation.TenDangNhap);
                LDatatable.AddParameter(ref dt, "@MA_LOAITK", "string", maLoaiTK);
                LDatatable.AddParameter(ref dt, "@MATK", "string", maTK);

                Presentation.Process.KhaiThacDuLieuProcess process = new Presentation.Process.KhaiThacDuLieuProcess();
                DataSet ds = process.GetDanhSachMapping(dt);
                grdDSDKien.UnselectAll();

                if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                {
                    List <DataRowView> lstDr = new List <DataRowView>();
                    for (int i = 0; i < grdDSDKien.Items.Count; i++)
                    {
                        DataRowView dr = (DataRowView)grdDSDKien.Items[i];
                        for (int j = 0; j < ds.Tables[0].Rows.Count; j++)
                        {
                            if (dr["MA_DKIEN"].ToString().Equals(ds.Tables[0].Rows[j]["MA_MAPPING"]))
                            {
                                lstDr.Add(dr);
                            }
                        }
                    }
                    grdDSDKien.Select(lstDr);
                }
            }
            catch (Exception ex)
            {
                CommonFunction.ThongBaoLoi(ex);
                LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex);
            }

            Mouse.OverrideCursor = Cursors.Arrow;
        }