コード例 #1
0
 /// <summary>
 /// constractor.
 /// </summary>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <param name="host"></param>
 /// <param name="unit"></param>
 public Email(GuestRequestBO request, HostingUnitBO unit, HostBO host, PersonBO clientPerson)
 {
     Request      = request;
     HostName     = host.PersonalInfo.FirstName + " " + host.PersonalInfo.LastName;
     ToEmailAdd   = clientPerson.Email;
     FromEmailAdd = host.PersonalInfo.Email;
     FromDate     = request.EntryDate;
     ToDate       = request.LeaveDate;
     Unit         = unit;
 }
コード例 #2
0
 public static BO.GuestRequestBO ConverFrom_DO_To_BoRequest(DO.GuestRequest other)
 {
     BO.GuestRequestBO tmp = new BO.GuestRequestBO();
     tmp.Adults               = other.Adults;
     tmp.Area                 = (BO.Areas)other.Area;
     tmp.Children             = other.Children;
     tmp.ChildrensAttractions = (BO.Answer)other.ChildrensAttractions;
     tmp.ClientId             = other.ClientId;
     tmp.CreateDate           = other.CreateDate;
     tmp.EntryDate            = other.EntryDate;
     tmp.Garden               = (BO.Answer)other.Garden;
     tmp.Jacuzzi              = (BO.Answer)other.Jacuzzi;
     tmp.Key         = other.Key;
     tmp.LeaveDate   = other.LeaveDate;
     tmp.NumOfoffers = other.NumOfoffers;
     tmp.Pool        = (BO.Answer)other.Pool;
     tmp.Rooms       = other.Rooms;
     tmp.Status      = (BO.StatusRequest)other.Status;
     tmp.SubArea     = other.SubArea;
     tmp.Terrace     = other.Terrace;
     tmp.Type        = (BO.HostingType)other.Type;
     return(tmp);
 }