BKI_DichVuMatDat.US.US_GD_HE_SO_LNS.FillDatasetBCBienDong C# (CSharp) Method

FillDatasetBCBienDong() public method

public FillDatasetBCBienDong ( System.DateTime ip_dat_tu_ngay, System.DateTime ip_dat_den_ngay ) : DataTable
ip_dat_tu_ngay System.DateTime
ip_dat_den_ngay System.DateTime
return System.Data.DataTable
        public DataTable FillDatasetBCBienDong(DateTime ip_dat_tu_ngay, DateTime ip_dat_den_ngay)
        {
            CStoredProc v_cstore = new CStoredProc("pr_RPTTH_bao_cao_bien_dong_he_so_lns");
            v_cstore.addDatetimeInputParam("@ip_dat_tu_ngay", ip_dat_tu_ngay);
            v_cstore.addDatetimeInputParam("@ip_dat_den_ngay", ip_dat_den_ngay);
            DataSet v_ds = new DataSet();
            v_ds.Tables.Add(new DataTable());
            v_cstore.fillDataSetByCommand(this, v_ds);
            return v_ds.Tables[0];
        }

Usage Example

 private void load_data_to_grid()
 {
     US_GD_HE_SO_LNS v_us = new US_GD_HE_SO_LNS();
     DataTable v_dt = v_us.FillDatasetBCBienDong(m_dat_tu_ngay.DateTime, m_dat_den_ngay.DateTime);
     m_grc.DataSource = v_dt;
     CHRMCommon.make_stt(m_grv);
 }