Ejemplo n.º 1
0
 private void GUI_SanPham_Load(object sender, EventArgs e)
 {
     lstSP.DataSource          = ctl.loadListSP();
     lstSP.Columns[5].Visible  = false;
     lstSP.Columns[6].Visible  = false;
     lstSP.Columns[7].Visible  = false;
     lstSP.Columns[8].Visible  = false;
     lstSP.Columns[9].Visible  = false;
     lstSP.Columns[10].Visible = false;
     lstSP.Columns[11].Visible = false;
     lstSP.Columns[12].Visible = false;
     cbNCC.DataSource          = ctlNCC.loadListNCC();
     cbNCC.DisplayMember       = "TENNCC";
     cbNCC.ValueMember         = "MANCC";
     cbNCC.AutoCompleteMode    = AutoCompleteMode.SuggestAppend;
     cbNCC.AutoCompleteSource  = AutoCompleteSource.ListItems;
     cboLSP.DataSource         = ctlLSP.loadListLSP();
     cboLSP.DisplayMember      = "TENLOAI";
     cboLSP.ValueMember        = "MALOAI";
     cboLSP.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
     cboLSP.AutoCompleteSource = AutoCompleteSource.ListItems;
 }
Ejemplo n.º 2
0
 private void GUI_NhaCungCap_Load(object sender, EventArgs e)
 {
     lstNCC.DataSource         = ctl.loadListNCC();
     lstNCC.Columns[4].Visible = false;
     lstNCC.Columns[5].Visible = false;
 }