public FillDatasetBCBienDong ( System.DateTime ip_dat_tu_ngay, System.DateTime ip_dat_den_ngay ) : |
||
ip_dat_tu_ngay | System.DateTime | |
ip_dat_den_ngay | System.DateTime | |
return |
public DataTable FillDatasetBCBienDong(DateTime ip_dat_tu_ngay, DateTime ip_dat_den_ngay)
{
CStoredProc v_cstore = new CStoredProc("pr_RPTTH_bao_cao_bien_dong_cong_tac");
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];
}
private void load_data_to_grid() { US_GD_CONG_TAC v_us = new US_GD_CONG_TAC(); 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); }