Ejemplo n.º 1
0
 public static bool ThemHDXuat(HDXuatDTO hd)
 {
     hd.MaHDXuat = (HDXuatDAO.LayMaHDXuatLonNhat() + 1);
     if (!HDXuatDAO.ThemHDXuat(hd))
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
        public static int LayMaHDXuatLonNhat()
        {
            int maxHDXuat = HDXuatDAO.LayMaHDXuatLonNhat();

            if (maxHDXuat != 0)
            {
                return(maxHDXuat + 1);
            }
            return(1);
        }
Ejemplo n.º 3
0
 public static bool CapNhatTrangThaiHuy(int maHD, int tTai)
 {
     return(HDXuatDAO.CapNhatTrangThaiHuy(maHD, tTai));
 }
Ejemplo n.º 4
0
 public static bool HoanTatHD(HDXuatDTO hd)
 {
     return(HDXuatDAO.HoanTatHD(hd));
 }
Ejemplo n.º 5
0
 public static bool CapNhatHDXuat(int maHD, int tTien)
 {
     return(HDXuatDAO.CapNhatHDXuat(maHD, tTien));
 }
Ejemplo n.º 6
0
 //Lấy tổng tiền trong HD
 public static int LayTongTienHDXuat(int maHD)
 {
     return(HDXuatDAO.LayTongTienHD(maHD));
 }
Ejemplo n.º 7
0
 public static DataTable LayDSHDXuatBiXoa(string tenTK)
 {
     return(HDXuatDAO.LayDSHDXuatBiXoa(tenTK));
 }