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