public static void MakePhieuTra(string idDocGia, DateTime ngayTra, int[] idSachs, int[] idPhieuMuons, int[] soNgayMuon, int[] tienPhat, string tongNoMoi) { int idPhieuTra = PhieuTraDAO.AddPhieuTra(Int32.Parse(idDocGia), ngayTra); for (int i = 0; i < idSachs.Length; i++) { CT_PhieuTraBus.AddCT_PhieuTra(idPhieuMuons[i], idSachs[i], idPhieuTra, soNgayMuon[i], tienPhat[i]); SachBUS.UpdateTinhTrangSach(idSachs[i], false); } DocGiaBUS.UpdateNo(Int32.Parse(idDocGia), Double.Parse(tongNoMoi)); }
private static void UpdateNo(string idDocGia, string conLai) { DocGiaBUS.UpdateNo(Int32.Parse(idDocGia), Double.Parse(conLai)); }