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
} // 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
} // enum OrderFetchStatus private string BuildValidityRq(Customer oCustomer, AccountData oAccountData) { return(string.Format( ValidityReportRq, oCustomer.Id, m_oAccountData.UrlPathElement().ToLower(), oAccountData.Id() )); } // BuildValidityRq