public GuestForSubmitHotelOrder toGuestForSubmitHotelOrder() { GuestForSubmitHotelOrder guest = new GuestForSubmitHotelOrder(); guest.Email = this.email; guest.GenderCode = this.genderCode; guest.IdNumber = this.idNumber; guest.IdTypeCode = this.idTypeCode; guest.Mobile = this.mobile; guest.Name = ObjectUtil.Parse(this.nameCn, this.nameEn); guest.Nationality = this.nationality; PhoneForSubmitHotelOrder phone = new PhoneForSubmitHotelOrder(); phone.AreaCode = this.phoneAreaCode; phone.InterCode = this.phoneInterCode; phone.Ext = this.phoneExt; phone.Nmber = this.phoneNumber; FaxForSubmitHotelOrder fax = new FaxForSubmitHotelOrder(); fax.AreaCode = this.faxAreaCode; fax.InterCode = this.faxInterCode; fax.Ext = this.faxExt; fax.Nmber = this.phoneNumber; guest.Fax = fax; guest.Phone = phone; return(guest); }
public IList<GuestForSubmitHotelOrder> createGuestForSubmitHotelOrderList(string[] guestNames) { IList<GuestForSubmitHotelOrder> guests = new List<GuestForSubmitHotelOrder>(); foreach(string guestName in guestNames){ GuestForSubmitHotelOrder guest = new GuestForSubmitHotelOrder(); guest.Name = guestName; guest.GenderCode = "2"; guests.Add(guest); } return guests; }
public IList <GuestForSubmitHotelOrder> createGuestForSubmitHotelOrderList(string[] guestNames) { IList <GuestForSubmitHotelOrder> guests = new List <GuestForSubmitHotelOrder>(); foreach (string guestName in guestNames) { GuestForSubmitHotelOrder guest = new GuestForSubmitHotelOrder(); guest.Name = guestName; guest.GenderCode = "2"; guests.Add(guest); } return(guests); }
public GuestForSubmitHotelOrder toGuestForSubmitHotelOrder() { GuestForSubmitHotelOrder guest = new GuestForSubmitHotelOrder(); guest.Email = this.email; guest.GenderCode = this.genderCode; guest.IdNumber = this.idNumber; guest.IdTypeCode = this.idTypeCode; guest.Mobile = this.mobile; guest.Name = ObjectUtil.Parse(this.nameCn, this.nameEn); guest.Nationality = this.nationality; PhoneForSubmitHotelOrder phone = new PhoneForSubmitHotelOrder(); phone.AreaCode = this.phoneAreaCode; phone.InterCode = this.phoneInterCode; phone.Ext = this.phoneExt; phone.Nmber =this.phoneNumber; FaxForSubmitHotelOrder fax = new FaxForSubmitHotelOrder(); fax.AreaCode = this.faxAreaCode; fax.InterCode = this.faxInterCode; fax.Ext = this.faxExt; fax.Nmber = this.phoneNumber; guest.Fax = fax; guest.Phone=phone; return guest; }