Esempio n. 1
0
 private void btnThem_Click(object sender, EventArgs e)
 {
     if (btnThem.Text == "Thêm")
     {
         CheDoButton(false);
         btnXacNhan.Enabled = false;
         btnThem.Enabled    = true;
         btnThem.Text       = "Bỏ qua";
         CheDoComboBox(true);
     }
     else
     {
         btnThem.Text = "Thêm";
         CheDoButton(true);
         CheDoComboBox(false);
         listpNK = bllpNK.laydanhsachphieuNhapKho();
         LoaddulieulendatagridviewPhieuNhapKho(dgvNhapKho, listpNK);
     }
 }
Esempio n. 2
0
        public NhapKho()
        {
            InitializeComponent();
            bllpNK     = new PhieuNK_BLL();
            bllKho     = new Kho_BLL();
            bllNDLTPKH = new NhanDuLieuTuPKH_BLL();

            listpNK   = new List <ePhieuNK>();
            listpNK   = bllpNK.laydanhsachphieuNhapKho();
            listpDNNK = new List <ePhieuDNNK>();
            listpDNNK = bllNDLTPKH.laydanhsachPhieuDNNK();
            LoaddulieulendatagridviewPhieuNhapKho(dgvNhapKho, listpNK);
            LoaddulieulendatagridviewPhieuDeNghiNhapKho(dgvPhieuDNChuaLap, listpDNNK);
            DuadulieulencomboboxMaKho(cbbMaKho);
            loaddulieulencomboboxTinhTrang(cbbTinhTrang);
            CheDoButton(true);
            CheDoComboBox(false);
        }
Esempio n. 3
0
 public void duadulieulencbb(ComboBox cb)
 {
     this.cbbmaphieu.DataSource    = bllNK.laydanhsachphieuNhapKho();
     this.cbbmaphieu.DisplayMember = "_maPhieuNhap";
     this.cbbmaphieu.ValueMember   = "_maPhieuNhap";
 }