コード例 #1
0
ファイル: GuestModel.cs プロジェクト: uhealin/toyz-toyz4net
        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);
        }
コード例 #2
0
ファイル: ELongApiBiz.cs プロジェクト: uhealin/toyz-toyz4net
        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;
        }
コード例 #3
0
ファイル: ELongApiBiz.cs プロジェクト: uhealin/toyz-toyz4net
        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);
        }
コード例 #4
0
ファイル: GuestModel.cs プロジェクト: uhealin/toyz-toyz4net
        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;
        }