public ReceiveRoomDTO(DataRow row, DataTable data) { listName = InitNameColumn.init(data); Id = int.Parse(row[listName[0]].ToString()); IdBookRoom = int.Parse(row[listName[1]].ToString()); IdRoom = int.Parse(row[listName[2]].ToString()); }
public BillServiceDTO(DataRow row, DataTable data) { listName = InitNameColumn.init(data); nameService = row[listName[0]].ToString(); Price = int.Parse(row[listName[1]].ToString()); Count = int.Parse(row[listName[2]].ToString()); TotalPrice = int.Parse(row[listName[3]].ToString()); }
public ServiceDTO(DataRow row, DataTable data) { listName = InitNameColumn.init(data); ID = int.Parse(row[listName[0]].ToString()); Name = row[listName[1]].ToString(); Price = int.Parse(row[listName[2]].ToString()); NameServiceType = row[listName[3]].ToString(); IdService = int.Parse(row[listName[4]].ToString()); }
public ReceiveDTO(DataRow row, DataTable data) { listName = InitNameColumn.init(data); IdBookRoom = int.Parse(row[listName[0]].ToString()); NameCustomer = row[listName[1]].ToString(); CMND = row[listName[2]].ToString(); NameRoom = row[listName[3]].ToString(); NgayNhan = DateTime.Parse(row[listName[4]].ToString()); Ngaytra = DateTime.Parse(row[listName[5]].ToString()); }
public BillRoomPrice(DataRow row, DataTable data) { listName = InitNameColumn.init(data); NameRoom = row[listName[0]].ToString(); Price = int.Parse(row[listName[1]].ToString()); NgayNhan = DateTime.Parse(row[listName[2]].ToString()); NgayTra = DateTime.Parse(row[listName[3]].ToString()); TotalPrice = int.Parse(row[listName[4]].ToString()); Surcharge = int.Parse(row[listName[5]].ToString()); }