BKI_DichVuMatDat.US.US_V_GD_CONG_TAC.LayDanhSachNhanVienKiemNhiem C# (CSharp) Method

LayDanhSachNhanVienKiemNhiem() public method

public LayDanhSachNhanVienKiemNhiem ( System.DateTime ip_dat_tu_ngay, System.DateTime ip_dat_den_ngay ) : DS_V_GD_CONG_TAC
ip_dat_tu_ngay System.DateTime
ip_dat_den_ngay System.DateTime
return DS_V_GD_CONG_TAC
        public DS_V_GD_CONG_TAC LayDanhSachNhanVienKiemNhiem(DateTime ip_dat_tu_ngay, DateTime ip_dat_den_ngay)
        {
            CStoredProc v_sp = new CStoredProc("pr_lay_danh_sach_nhan_vien_bo_nhiem");
            DS_V_GD_CONG_TAC v_ds = new DS_V_GD_CONG_TAC();
            v_ds.EnforceConstraints = false;

            v_sp.addDatetimeInputParam("@ip_dat_tu_ngay", ip_dat_tu_ngay);
            v_sp.addDatetimeInputParam("@ip_dat_den_ngay", ip_dat_den_ngay);
            v_sp.fillDataSetByCommand(this, v_ds);
            return v_ds;
        }

Usage Example

 private void load_data_2_grid()
 {
     US_V_GD_CONG_TAC v_us_cong_tac = new US_V_GD_CONG_TAC();
     var v_ds_cong_tac = v_us_cong_tac.LayDanhSachNhanVienKiemNhiem(m_dat_tu_ngay.DateTime, m_dat_den_ngay.DateTime);
     m_grc_main.DataSource = v_ds_cong_tac.Tables[0];
 }