예제 #1
0
 public void MergeFrom(TaxAssessmentSvcHypotheticalGroupBookingFolioAdjustment other)
 {
     if (other == null)
     {
         return;
     }
     if (other.groupBooking_ != null)
     {
         if (groupBooking_ == null)
         {
             groupBooking_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         GroupBooking.MergeFrom(other.GroupBooking);
     }
     if (other.amountTendered_ != null)
     {
         if (amountTendered_ == null)
         {
             amountTendered_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AmountTendered.MergeFrom(other.AmountTendered);
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
 }
예제 #2
0
 public GroupBookingExtBuilder(GroupBooking gb, string groupName,
                               string groupNumber, string groupContactName, GroupType groupType,
                               PropertyIndicator property, IEnumerable <GroupBookingRoomTypeQuantity> qty)
 {
     _gb               = gb;
     _groupName        = groupName;
     _groupNumber      = groupNumber;
     _groupContactName = groupContactName;
     _groupType        = groupType;
     _property         = property;
     _quantities       = qty;
 }
예제 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string groupid = Session["GroupId"].ToString();

        if (!Page.IsPostBack)
        {
            //string groupid = Request.QueryString["groupID"];
            //string groupid = Session["GroupId"].ToString();

            //lbl_groupid.Text = "Group Id is: " + groupid;
            GridListView.DataSource = GroupBooking.GetEmails(groupid);
            GridListView.DataBind();

            GridListViewAgents.DataSource = GroupBooking.GetEmailsAgents(groupid);
            GridListViewAgents.DataBind();
        }
    }
        public GroupBooking Build()
        {
            var gb = new GroupBooking {
                EntityId             = _gbi,
                Status               = _gbs,
                TaxExempt            = _taxExempt,
                TaxId                = _taxId,
                GroupPaysLodging     = _groupPaysLodging,
                GroupPaysIncidentals = _groupPaysIncidentals,
                AdditionalNotes      = _additionalNotes ?? string.Empty,
                CustomerBookingId    = _customerBookingId ?? string.Empty,
                RateSchedule         = _rateSchedule,
                Group                = _group,
                GroupName            = _groupName,
                SurpressRateInfo     = _surpressratecheck,
                TaxCategory          = _taxCategory,
                BookingProperty      = _property
            };

            if (_bookingDates != null)
            {
                gb.DateRange = _bookingDates.ToPB;
            }

            if (_groupBookingMethodId.HasValue)
            {
                gb.BookingMethod = new GroupBookingMethodIndicator(_groupBookingMethodId.Value);
            }

            if (_reservationSourceId.HasValue)
            {
                gb.ReservationSourceId = _reservationSourceId.Value.ToUUID();
            }

            if (_travelAgent != null)
            {
                gb.TravelAgent = new TravelAgentIndicator(_travelAgent.Value);
            }

            if (_cancellationPolicy != null)
            {
                gb.CancellationPolicy = new CancellationPolicyIndicator(_cancellationPolicy.Value);
            }

            return(gb);
        }
예제 #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (groupBooking_ != null)
            {
                hash ^= GroupBooking.GetHashCode();
            }
            if (amountTendered_ != null)
            {
                hash ^= AmountTendered.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            return(hash);
        }