Exemple #1
0
 public void loadcombobox()
 {
     if (listnhacungcap(cbmancc))
     {
         nhacungcapbus bus = new nhacungcapbus();
         txtsuatenncc.Text = bus.getname(cbmancc.SelectedItem.ToString());
     }
 }
 public void loadlistnhacc()
 {
     if (listnhacungcap(manhacungcapcb))
     {
         nhacungcapbus bus = new nhacungcapbus();
         mancctxt.Text = bus.getname(manhacungcapcb.SelectedItem.ToString());
     }
 }
Exemple #3
0
        //load dữ liệu lên sửa phiếu
        private void suaphieu(object sender, EventArgs args)
        {
            tabControl4.SelectedTab = tabPage13;
            panel12.Visible         = true;
            splitContainer3.Visible = false;
            madonnhap           = (int)danhsachdonnhapdgv.SelectedCells[0].Value;
            maphieunhaplbl.Text = madonnhap.ToString();

            dateTimePicker4.Text = danhsachdonnhapdgv.SelectedCells[1].Value.ToString();
            if (listnhacungcap(cbmancc))
            {
                //load thông tin nhân viên đang đăng nhập
                txtsuamanvhientai.Text = currentuser.user;
                //load dữ liệu vào combobox manhacungcapcb
                nhacungcapbus bus = new nhacungcapbus();
                txtsuatenncc.Text = bus.getname(cbmancc.SelectedItem.ToString());
            }

            txtsuamanv.Text = danhsachdonnhapdgv.SelectedCells[3].Value.ToString();
        }
Exemple #4
0
        //load tên nhà cung cấp
        private void cbmancc_SelectionChangeCommitted(object sender, EventArgs e)
        {
            nhacungcapbus bus = new nhacungcapbus();

            txtsuatenncc.Text = bus.getname(cbmancc.SelectedItem.ToString());
        }
        //lấy tên nhà cung cấp vào textbox
        private void manhacungcapcb_SelectionChangeCommitted(object sender, EventArgs e)
        {
            nhacungcapbus bus = new nhacungcapbus();

            mancctxt.Text = bus.getname(manhacungcapcb.SelectedItem.ToString());
        }