Ejemplo n.º 1
0
 public int createInventoryList(DTO.InventoryList dto_PKH, DTO.InventoryListDetails[] dto_CT, int so_nl)
 {
     if (MessageBox.Show("Bạn có chắc chắn muốn lưu phiếu kiểm hàng?", "Xác nhận!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         DAO.InventoryList dao_PKH = new DAO.InventoryList();
         int maphieu = dao_PKH.createInventoryList(dto_PKH);
         BUS.InventoryListDetails bus = new BUS.InventoryListDetails();
         for (int i = 0; i < so_nl; i++)
         {
             bus.addInventoryListDetails(dto_CT[i], maphieu);
         }
         MessageBox.Show("Lưu phiếu kiểm hàng thành công!", "Thông báo!", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return(1);
     }
     return(0);
 }
Ejemplo n.º 2
0
 public DataTable loadInventoryList()
 {
     DAO.InventoryList dao = new DAO.InventoryList();
     return(dao.loadInventoryList());
 }
Ejemplo n.º 3
0
 public DataTable searchInventoryList_byNumber(string ma)
 {
     DAO.InventoryList dao = new DAO.InventoryList();
     return(dao.searchInventoryList_byNumber(ma));
 }
Ejemplo n.º 4
0
 public DataTable searchInventoryList_byDate(DateTime tungay, DateTime denngay)
 {
     DAO.InventoryList dao = new DAO.InventoryList();
     return(dao.searchInventoryList_byDate(tungay, denngay));
 }