public static bool LuuPhieuNhap(PhieuNhapDTO phieuNhap, List <CTPhieuNhapDTO> lsCTPhieuNhap) { if (!PhieuNhapDAO.LuuPhieuNhap(phieuNhap)) { return(false); } foreach (CTPhieuNhapDTO ctpn in lsCTPhieuNhap) { if (!CTPhieuNhapDAO.LuuCTPhieuNhap(ctpn)) { return(false); } if (!NguyenLieuDAO.TangSoLuongTonKho(ctpn)) { return(false); } } return(true); }
public static List <CTPhieuNhapDTO> LayDanhSachCTPhieuNhap(int maPhieuNhap) { return(CTPhieuNhapDAO.LayDanhSachCTPhieuNhap(maPhieuNhap)); }
public static bool checkTrung(string mapn, string masach) { return(CTPhieuNhapDAO.checkTrung(mapn, masach)); }
public static void UpdateCTPhieuNhap(string mapn, string masach, int soluong, int dongia, int tongtien) { CTPhieuNhapDAO.UpdateCTPhieuNhap(mapn, masach, soluong, dongia, tongtien); }
public static void DeleteCTPhieuNhap(string mapn, string masach) { CTPhieuNhapDAO.DeleteCTPhieuNhap(mapn, masach); }
public static List <CTPhieuNhapDTO> GetCTPN(string mapn) { return(CTPhieuNhapDAO.GetCTPN(mapn)); }