BKI_DichVuMatDat.US.US_GD_HOP_DONG.LayDanhSachHopDong C# (CSharp) Method

LayDanhSachHopDong() public method

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

            return v_ds.Tables[0];
        }

Usage Example

        private void load_data_to_grid()
        {
            US_GD_HOP_DONG v_us = new US_GD_HOP_DONG();
            m_grc.DataSource = v_us.LayDanhSachHopDong(get_option_filter(), get_thang(), get_nam());

            CHRMCommon.make_stt(m_grv);
        }