BKI_DichVuMatDat.US.US_GD_CHAM_CONG.FillDatasetNgayPhepTieuChuan C# (CSharp) Method

FillDatasetNgayPhepTieuChuan() public method

public FillDatasetNgayPhepTieuChuan ( DataSet v_ds, System.DateTime ip_nam_tinh_phep, decimal ip_id_nhan_vien ) : void
v_ds System.Data.DataSet
ip_nam_tinh_phep System.DateTime
ip_id_nhan_vien decimal
return void
        public void FillDatasetNgayPhepTieuChuan(DataSet v_ds, DateTime ip_nam_tinh_phep, decimal ip_id_nhan_vien)
        {
            CStoredProc v_cstore = new CStoredProc("PR_GET_PHEP_TIEU_CHUAN");
            v_cstore.addDatetimeInputParam("@DAT_NAM_TINH_PHEP", ip_nam_tinh_phep);
            v_cstore.fillDataSetByCommand(this, v_ds);
        }

Usage Example

 public void load_data_to_grid()
 {
     DataSet v_ds = new DataSet();
     US_GD_CHAM_CONG v_us = new US_GD_CHAM_CONG();
     v_ds.Tables.Add(new DataTable());
     v_us.FillDatasetNgayPhepTieuChuan(v_ds, m_dat_nam.DateTime.Date, -1);
     m_grc_phep_tieu_chuan.DataSource = v_ds.Tables[0];
 }