BKI_DichVuMatDat.US.US_GD_CONG_TAC.LayDuLieuCongTac C# (CSharp) Method

LayDuLieuCongTac() public method

public LayDuLieuCongTac ( string ip_str_option_filter, decimal ip_dc_thang, decimal ip_dc_nam ) : DataTable
ip_str_option_filter string
ip_dc_thang decimal
ip_dc_nam decimal
return System.Data.DataTable
        public DataTable LayDuLieuCongTac(string ip_str_option_filter, decimal ip_dc_thang, decimal ip_dc_nam)
        {
            CStoredProc v_cstore = new CStoredProc("pr_CT_danh_sach_cong_tac_GetAll");
            v_cstore.addNVarcharInputParam("@ip_str_option_hien_thi", ip_str_option_filter);
            v_cstore.addDecimalInputParam("@thang", ip_dc_thang);
            v_cstore.addDecimalInputParam("@nam", ip_dc_nam);
            DataSet v_ds = new DataSet();
            v_ds.Tables.Add();
            v_cstore.fillDataSetByCommand(this, v_ds);

            return v_ds.Tables[0];
        }

Usage Example

 private void load_data_to_grid()
 {
     US_GD_CONG_TAC v_us = new US_GD_CONG_TAC();
     DS_GD_CONG_TAC v_ds = new DS_GD_CONG_TAC();
     v_ds.EnforceConstraints = false;
     m_grc.DataSource = v_us.LayDuLieuCongTac(get_option_filter(), get_thang(), get_nam());
 }