Example #1
0
        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";
            }
        }
Example #3
0
 public DataTable GetNCC()
 {
     return(tNCC.GetNCC());
 }
Example #4
0
 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);
 }