private void load_data_to_grid() { US_V_DM_TAI_SAN_KHAC m_us_v_tai_san_khac = new US_V_DM_TAI_SAN_KHAC(); DS_V_DM_TAI_SAN_KHAC m_ds_v_tai_san_khac = new DS_V_DM_TAI_SAN_KHAC(); US_DM_DON_VI m_us_don_vi = new US_DM_DON_VI(); DS_DM_DON_VI m_ds_don_vi = new DS_DM_DON_VI(); m_us_v_tai_san_khac.FillDatasetLoadDataToGridTaiSanKhac_by_tu_khoa(m_txt_tim_kiem.Text.Trim() , CIPConvert.ToDecimal(m_cbo_bo_tinh.SelectedValue) , CIPConvert.ToDecimal(m_cbo_don_vi_chu_quan.SelectedValue) , CIPConvert.ToDecimal(m_cbo_don_vi_su_dung_tai_san.SelectedValue) , CIPConvert.ToDecimal(m_cbo_trang_thai.SelectedValue) , CIPConvert.ToStr(m_cbo_loai_hinh_don_vi.SelectedValue) , Person.get_user_name() , m_ds_v_tai_san_khac); m_grv_danh_sach_tai_san_khac.DataSource = m_ds_v_tai_san_khac.V_DM_TAI_SAN_KHAC; string v_str_thong_tin = " (Có " + m_ds_v_tai_san_khac.V_DM_TAI_SAN_KHAC.Rows.Count + " bản ghi)"; m_lbl_tieu_de.Text = "DANH SÁCH TÀI SẢN KHÁC"; m_lbl_tieu_de.Text += v_str_thong_tin; m_grv_danh_sach_tai_san_khac.DataBind(); }
private void load_data_2_grid() { US_V_DM_TAI_SAN_KHAC m_us_v_tai_san_khac = new US_V_DM_TAI_SAN_KHAC(); DS_V_DM_TAI_SAN_KHAC m_ds_v_tai_san_khac = new DS_V_DM_TAI_SAN_KHAC(); m_ds_v_tai_san_khac.V_DM_TAI_SAN_KHAC.Clear(); m_us_v_tai_san_khac.FillDatasetLoadDataToGridTaiSanKhac_by_tu_khoa(m_txt_tim_kiem.Text.Trim() , CONST_QLDB.ID_TAT_CA , CONST_QLDB.ID_TAT_CA , CONST_QLDB.ID_TAT_CA , CONST_QLDB.ID_TAT_CA , CONST_QLDB.ID_TAT_CA.ToString() , Person.get_user_name() , m_ds_v_tai_san_khac); m_grv_tai_san_khac.DataSource = m_ds_v_tai_san_khac.V_DM_TAI_SAN_KHAC; string v_str_thong_tin = " (Có " + m_ds_v_tai_san_khac.V_DM_TAI_SAN_KHAC.Rows.Count + " bản ghi)"; m_lbl_title.Text = "DANH SÁCH TÀI SẢN KHÁC"; m_lbl_title.Text += v_str_thong_tin; m_grv_tai_san_khac.DataBind(); }