public void ShowNCC() { Pharmacy.BLL.TNhaCC tNCC = new Pharmacy.BLL.TNhaCC(); DataTable dt = tNCC.GetNCC(); cmbKH.DisplayMember = "TEN"; cmbKH.ValueMember = "MANCC"; cmbKH.DataSource = dt; LoadAutoNCC(dt); }
public void ShowComboBox(int _flag) { DataTable dt = new DataTable(); if (flag == 0) { dt = tKH.GetKhachHang_All(); cmbChon.DataSource = dt; cmbChon.DisplayMember = "TEN"; cmbChon.ValueMember = "CODEKH"; } else { dt = tNCC.GetNCC(); cmbChon.DataSource = dt; cmbChon.DisplayMember = "TEN"; cmbChon.ValueMember = "CODENCC"; } }
public DataTable GetNCC() { return(tNCC.GetNCC()); }