BKI_DichVuMatDat.US.US_RPT_THONG_TIN_TONG_HOP_V2.LayDuLieuHeSo C# (CSharp) Method

LayDuLieuHeSo() public method

public LayDuLieuHeSo ( System.DateTime ip_dat_tu_thang, System.DateTime ip_dat_den_thang ) : DataTable
ip_dat_tu_thang System.DateTime
ip_dat_den_thang System.DateTime
return System.Data.DataTable
        public DataTable LayDuLieuHeSo(DateTime ip_dat_tu_thang, DateTime ip_dat_den_thang)
        {
            CStoredProc v_sp = new CStoredProc("pr_TL_he_so_athk_bsl_le_tet_GetAll");
            v_sp.addDatetimeInputParam("@ip_dat_tu_thang", ip_dat_tu_thang);
            v_sp.addDatetimeInputParam("@ip_dat_den_thang", ip_dat_den_thang);

            DataSet v_ds = new DataSet();
            v_ds.Tables.Add();
            v_sp.fillDataSetByCommand(this, v_ds);

            return v_ds.Tables[0];
        }

Usage Example

 private void load_data_to_grid()
 {
     US_RPT_THONG_TIN_TONG_HOP_V2 v_us_rpt = new US_RPT_THONG_TIN_TONG_HOP_V2();
     var v_dt_source = v_us_rpt.LayDuLieuHeSo(get_from_date(), get_to_date());
     m_grc_main.DataSource = v_dt_source;
     m_grc_main.RefreshDataSource();
 }