BizGiaTour.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TourDuLich.BIZ
{
class BizGiaTour
{
int id;
public int Id
{
get { return id; }
set { id = value; }
}
float giaTri;
public float GiaTri
{
get { return giaTri; }
set { giaTri = value; }
}
DateTime tgbd;
public DateTime ThoiGianBatDau
{
get { return tgbd; }
set { tgbd = value; }
}
public string sThoiGianBatDau
{
get { return ThoiGianBatDau.ToShortDateString(); }
}
DateTime tgkt;
public DateTime ThoiGianKetThuc
{
get { return tgkt; }
set { tgkt = value; }
}
public string sThoiGianKetThuc
{
get { return ThoiGianKetThuc.ToShortDateString(); }
}
bool dangApDung;
public bool DangApDung
{
get { return dangApDung; }
set { dangApDung = value; }
}
BizTour _tour;
public BizTour Tour
{
get { return _tour; }
set { _tour = value; }
}
public BizGiaTour(int _id, float _gt,
DateTime _tgbd, DateTime _tgkt,
bool _apDung, BizTour _tour)
{
Id = _id;
GiaTri = _gt;
ThoiGianBatDau = _tgbd;
ThoiGianKetThuc = _tgkt;
DangApDung = _apDung;
Tour = _tour;
}
}
}
Bạn đang đọc truyện trên: AzTruyen.Top