BKI_DichVuMatDat.US.US_DM_NHAN_VIEN.LayDanhSachNVTheoPhongBan C# (CSharp) Method

LayDanhSachNVTheoPhongBan() public method

public LayDanhSachNVTheoPhongBan ( decimal ip_dc_id_don_vi, decimal ip_dc_id_chuc_danh ) : DataTable
ip_dc_id_don_vi decimal
ip_dc_id_chuc_danh decimal
return System.Data.DataTable
        public DataTable LayDanhSachNVTheoPhongBan(decimal ip_dc_id_don_vi, decimal ip_dc_id_chuc_danh)
        {
            CStoredProc v_cstore = new CStoredProc("pr_NV_nhan_vien_theo_phong_ban_GetAll");
            DataSet v_ds = new DataSet();
            v_ds.Tables.Add();
            v_cstore.addDecimalInputParam("@ip_dc_id_don_vi", ip_dc_id_don_vi);
            v_cstore.addDecimalInputParam("@ip_dc_id_chuc_vu", ip_dc_id_chuc_danh);
            v_cstore.fillDataSetByCommand(this, v_ds);

            return v_ds.Tables[0];
        }

Usage Example

 private void load_data_to_grid()
 {
     US_DM_NHAN_VIEN v_us = new US_DM_NHAN_VIEN();
     m_grc.DataSource = v_us.LayDanhSachNVTheoPhongBan(get_id_don_vi(), get_id_chuc_vu());
     //m_grc.DataSource = v_us.LayDanhSachNVTheoPhongBan(get_id_don_vi(), get_id_chuc_vu());
     CHRMCommon.make_stt(m_grv);
 }
US_DM_NHAN_VIEN