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

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