コード例 #1
0
ファイル: Order.cs プロジェクト: vijayamazon/ezbob
        public static Order Create(XmlNode oNode, string sShopTypeName, AccountData oAccountData, int nIsExpense)
        {
            string sOrderShopTypeName = XmlUtil.GetString(oNode, "accountType");

            if (sOrderShopTypeName.ToLower() != sShopTypeName)
            {
                return(null);
            }

            int nAccountID = XmlUtil.GetInt(oNode, "accountId");

            if (nAccountID != oAccountData.Id())
            {
                return(null);
            }

            return(new Order(oNode, nIsExpense));
        }         // Create
コード例 #2
0
        }         // BuildGenerateOrdExpRq

        private string BuildOrdExpGeneratedRq(string sRequest, Customer oCustomer, AccountData oAccountData, int nRqID)
        {
            return(string.Format(
                       sRequest, oCustomer.Id, m_oAccountData.UrlPathElement().ToLower(), oAccountData.Id(), nRqID
                       ));
        }         // BuildOrdExpGeneratedRq
コード例 #3
0
        }         // enum OrderFetchStatus

        private string BuildValidityRq(Customer oCustomer, AccountData oAccountData)
        {
            return(string.Format(
                       ValidityReportRq, oCustomer.Id, m_oAccountData.UrlPathElement().ToLower(), oAccountData.Id()
                       ));
        }         // BuildValidityRq