Beispiel #1
0
        private bool buildAndSendOrder()
        {
            bool successful = true;

            try
            {
                WebmateClientInterface webMate = WebmateClientInterface.Instance;
                string orderHandle             = webMate.OpenOrder();

                setWebOrderHeaderSection(orderHandle);
                setWebOrderFromSection(orderHandle);
                setWebOrderAccountSection(orderHandle);
                commitWebOrder(orderHandle);

                orderHandle_ = orderHandle;

                MessageBox.Show(orderHandle);
            }

            catch (Exception exc)
            {
                successful = false;
                MessageBox.Show(exc.Message);
            }

            return(successful);
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        protected void buildAndSendOrder(
            string inWebSiteName,
            string inStoreName)
        {
            try
            {
                WebmateClientInterface webMate = WebmateClientInterface.Instance;
                string orderHandle             = webMate.OpenOrder();

                setWebOrderHeaderSection(orderHandle);
                setWebOrderFromSection(orderHandle);
                setWebOrderAccountSection(orderHandle);
                commitWebOrder(orderHandle);

                getAndShowWebOrderStatus(
                    orderHandle,
                    inWebSiteName,
                    inStoreName);

                //MessageBox.Show(orderHandle);
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.Message);
            }

            resetEditingItem();
        }