private void load_data_2_grid() { m_ds = new DS_V_DM_DU_LIEU_NHAN_VIEN(); m_us.FillDataset(m_ds); m_fg.Redraw = false; CGridUtils.Dataset2C1Grid(m_ds, m_fg, m_obj_trans); m_fg.Redraw = true; set_search_textbox_style(); m_lbl_so_nhan_vien.Text = lay_so_ban_ghi().ToString(); }
private void load_custom_source_2_m_txt_tim_kiem() { m_us.FillDataset(m_ds, "WHERE ID_PHAP_NHAN =" + CAppContext_201.getCurrentIDPhapnhan().ToString()); int count = m_ds.Tables["V_DM_DU_LIEU_NHAN_VIEN"].Rows.Count; AutoCompleteStringCollection v_acsc_search = new AutoCompleteStringCollection(); foreach (DataRow dr in m_ds.V_DM_DU_LIEU_NHAN_VIEN) { v_acsc_search.Add(dr[V_DM_DU_LIEU_NHAN_VIEN.MA_DON_VI].ToString()); v_acsc_search.Add(dr[V_DM_DU_LIEU_NHAN_VIEN.HO_DEM].ToString() + " " + dr[V_DM_DU_LIEU_NHAN_VIEN.TEN].ToString()); v_acsc_search.Add(dr[V_DM_DU_LIEU_NHAN_VIEN.MA_NV].ToString()); } m_txt_tim_kiem.AutoCompleteCustomSource = v_acsc_search; }