コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="inDiscountID"></param>
        /// <param name="inGUID"></param>
        /// <param name="inQty"></param>
        /// <param name="inBasePrice"></param>
        /// <returns></returns>
        public DTO_WebOrderItemOption CreateAccountOrderItemOption(
            uint inDiscountID,
            string inGUID,
            float inQty,
            decimal inBasePrice)
        {
            DTO_WebOrderItemOption result = new DTO_WebOrderItemOption();

            //......................................................

            result.DiscountID = inDiscountID;
            result.UID        = inGUID;
            result.Qty        = inQty;
            result.BasePrice  = inBasePrice;
            //......................................................

            return(result);
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="inUID"></param>
        /// <param name="outItemOption"></param>
        /// <returns></returns>
        public bool CreateWebOrderItemOption(
            DTO_UID inUID,
            ref DTO_WebOrderItemOption outItemOption)
        {
            errorMsg_  = "";
            errorCode_ = ResponseCode.Successful;

            DTO_WebOrderResponse response = wcfClient_.CreateWebOrderItemOption(
                inUID,
                ref outItemOption);

            if (!response.Succesful)
            {
                errorMsg_  = response.Message;
                errorCode_ = response.ResponseCode;
            }

            return(response.Succesful);
        }
コード例 #3
0
ファイル: WebOrder.cs プロジェクト: radtek/Pos
        /// <summary>
        ///
        /// </summary>
        /// <param name="inItemOptionsNode"></param>
        /// <returns></returns>
        DTO_WebOrderItemOption[] readWebOrderItemOptionsComplete(XmlNode inItemOptionsNode)
        {
            XmlNodeList itemNodeList = XMLDocManager.GetNodeList(inItemOptionsNode, @"Option");

            List <DTO_WebOrderItemOption> itemOptionList = new List <DTO_WebOrderItemOption>();

            foreach (XmlNode optionNode in inItemOptionsNode)
            {
                DTO_WebOrderItemOption option = new DTO_WebOrderItemOption();

                option.UID        = getXMLOrderAttribute(optionNode, @"uid", @"");
                option.BasePrice  = Convert.ToDecimal(getXMLOrderAttribute(optionNode, @"basePrice", @"0.00"));
                option.Qty        = Convert.ToSingle(getXMLOrderAttribute(optionNode, @"quantity", @"0.0"));
                option.DiscountID = Convert.ToUInt32(getXMLOrderAttribute(optionNode, @"discountID", @"0"));
                option.Note       = getXMLOrderAttribute(optionNode, @"note", @"");

                itemOptionList.Add(option);
            }

            return(itemOptionList.ToArray());
        }