Example #1
0
        /// <summary>
        /// A basic add example
        /// </summary>
        /// <param name="orgCode">Organization code</param>
        /// <param name="Event">The event ID of the event attached to the order</param>
        /// <param name="orderStatus">This is the user-configurable status code on the order</param>
        /// <param name="accountCode">This should be a single account code</param>
        /// <param name="function">The event ID of the event attached to the order</param>
        /// <param name="billToAccount"></param>
        /// <param name="priceList">The price list code. You can find this on the Price List window in Ungerboeck under the "Code" field (Database column CC715_PRICE_LIST).</param>
        public ServiceOrdersModel Add(string orgCode, int Event, string orderStatus, string accountCode, int function, string billToAccount, string priceList)
        {
            var myServiceOrder = new ServiceOrdersModel
            {
                OrganizationCode = orgCode,
                Event            = Event,
                OrderStatus      = orderStatus,
                Account          = accountCode,
                Function         = function,
                BillToAccount    = billToAccount,
                PriceList        = priceList,
            };

            return(APIUtil.AddServiceOrder(USISDKClient, myServiceOrder));
        }
Example #2
0
        /// <summary>
        /// Adds a booth order to the specified exhibitor. Optionally takes a paramater for booth to assign the exhibitor at the same time.
        /// </summary>
        /// <param name="orgCode">Organization code</param>
        /// <param name="Event">The event ID of the event attached to the order</param>
        /// <param name="orderStatus">This is the user-configurable status code on the order</param>
        /// <param name="accountCode">This should be a single account code</param>
        /// <param name="exhibitor">The exhibitorID to add this order to</param>
        /// <param name="function">The event ID of the event attached to the order. Must be of type </param>
        /// <param name="billToAccount"></param>
        /// <param name="priceList">The price list code. You can find this on the Price List window in Ungerboeck under the "Code" field (Database column CC715_PRICE_LIST).</param>
        /// <param name="booth">This is a comma seperated list of booths to assign to this order</param>
        public ServiceOrdersModel AddBoothOrderToExhibitor(string orgCode, int Event, string orderStatus, string accountCode, int exhibitor, int function, string billToAccount, string priceList, string booth = "")
        {
            var exhibitorBoothOrder = new ServiceOrdersModel
            {
                OrganizationCode = orgCode,
                Event            = Event,
                OrderStatus      = orderStatus,
                Account          = accountCode,
                Function         = function,
                BillToAccount    = billToAccount,
                PriceList        = priceList,
                Exhibitor        = exhibitor,
                BoothOrder       = "Y",
                BoothNumber      = booth
            };

            return(APIUtil.AddServiceOrder(USISDKClient, exhibitorBoothOrder));
        }
Example #3
0
        /// <summary>
        /// A basic add example
        /// </summary>
        /// <param name="orgCode">Organization code</param>
        /// <param name="Event">The event ID of the event attached to the order</param>
        /// <param name="orderStatus">This is the user-configurable status code on the order</param>
        /// <param name="accountCode">This should be a single account code</param>
        /// <param name="function">The event ID of the event attached to the order</param>
        /// <param name="billToAccount"></param>
        /// <param name="priceList">The price list code. You can find this on the Price List window in Ungerboeck under the "Code" field (Database column CC715_PRICE_LIST).</param>
        /// <param name="issueType">This is the Issue Type code of the registration user field set.  Example string value "CK"</param>
        /// <param name="userText05Value">This is just an example of the user fields you can set</param>
        public ServiceOrdersModel AddWithUserFields(string orgCode, int Event, string orderStatus, string accountCode, int function, string billToAccount, string priceList, string issueType, int userNumber03Value)
        {
            var myServiceOrder = new ServiceOrdersModel
            {
                OrganizationCode = orgCode,
                Event            = Event,
                OrderStatus      = orderStatus,
                Account          = accountCode,
                Function         = function,
                BillToAccount    = billToAccount,
                PriceList        = priceList
            };

            myServiceOrder.ServiceOrderUserFieldSets = new List <UserFields>();
            var myUserField = new UngerboeckSDKPackage.UserFields();

            myUserField.Type         = issueType;                      //Use the Opportunity Type code from your user field.  This matches the value stored in Ungerboeck table column CR073_ISSUE_TYPE.
            myUserField.UserNumber03 = userNumber03Value;              //Set the value in the user field property
            myServiceOrder.ServiceOrderUserFieldSets.Add(myUserField); //Then add it back into the RegistrationOrdersModel object.  You can add multiple user field sets to the same registration order object before saving.

            return(APIUtil.AddServiceOrder(USISDKClient, myServiceOrder));
        }
Example #4
0
        /// <summary>
        /// This method is used to create an order, exhibitor, and assign a booth at the same time. This a process used for venues and is similar to the process ESC does. It does not rely on the exhibitor
        /// record explicitly. It will create an Exhibitor record if one is not provided, as well as create a booth record if it does not match an existing one.
        /// </summary>
        /// <param name="orgCode">Organization code</param>
        /// <param name="Event">The event ID of the event attached to the order</param>
        /// <param name="orderStatus">This is the user-configurable status code on the order</param>
        /// <param name="accountCode">This should be a single account code</param>
        /// <param name="function">The event ID of the event attached to the order. Must be of type </param>
        /// <param name="billToAccount"></param>
        /// <param name="priceList">The price list code. You can find this on the Price List window in Ungerboeck under the "Code" field (Database column CC715_PRICE_LIST).</param>
        /// <param name="booth">This is a comma seperated list of booths to assign to this order</param>
        /// <param name="exhibitor">The exhibitorID to add this order to. This is optional and will be used if specified, otherwise we will find an existing exhibitor on the event if they exist,
        ///   or add a new one otherwise</param>
        public ServiceOrdersModel AddOrderWithBooth(string orgCode, int Event, string orderStatus, string accountCode, int function, string billToAccount, string priceList, string booth, int exhibitor = 0)
        {
            var myServiceOrder = new ServiceOrdersModel
            {
                OrganizationCode = orgCode,
                Event            = Event,
                OrderStatus      = orderStatus,
                Account          = accountCode,
                Function         = function,
                BillToAccount    = billToAccount,
                PriceList        = priceList,
                BoothNumber      = booth,
                Exhibitor        = exhibitor,
            };

            if (!string.IsNullOrEmpty(booth))
            {
                // Adding a booth will flag the order as a booth order automatically, but we will be explicit
                myServiceOrder.BoothOrder = "Y";
            }

            return(APIUtil.AddServiceOrder(USISDKClient, myServiceOrder));
        }