Ejemplo n.º 1
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PriceModel" /> instances.
        /// </summary>
        /// <param name="productId">
        ///     The value which identifies the <see cref="!:PriceModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PriceModel" /> instances that match the specified <paramref name="productId" />.
        /// </returns>
        public static IEnumerable <Consensus.Finance.Price> FetchAllByProductId(ConsensusSite site, System.String productId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Finance.IPriceModel> collection = provider.Finance.Price.FetchAllByProductId(productId);

            return(collection.Select(model => new Consensus.Finance.Price(model)));
        }
Ejemplo n.º 2
0
        public static IEnumerable <Consensus.Other.Batch> FetchAllByBatchDiIdId(ConsensusSite site, System.Nullable <System.Int32> batchDiIdId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Other.IBatchModel> collection = provider.Other.Batch.FetchAllByBatchDiIdId(batchDiIdId);

            return(collection.Select(model => new Consensus.Other.Batch(model)));
        }
        /// <summary>
        ///     Creates a new <see cref="!:SellingCompanyConfigModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:SellingCompanyConfigModel" /> instance.
        /// </returns>
        public static Consensus.Common.SellingCompanyConfig Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.ISellingCompanyConfigModel model = provider.Common.SellingCompanyConfig.Create();
            return(model == null ? null : new Consensus.Common.SellingCompanyConfig(model));
        }
Ejemplo n.º 4
0
        /// <summary>
        ///     Creates a new <see cref="!:BatchModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:BatchModel" /> instance.
        /// </returns>
        public static Consensus.Other.Batch Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Other.IBatchModel model = provider.Other.Batch.Create();
            return(model == null ? null : new Consensus.Other.Batch(model));
        }
Ejemplo n.º 5
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:BatchModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:BatchModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:BatchModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Other.Batch FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Other.IBatchModel model = provider.Other.Batch.FetchById(id);
            return(model == null ? null : new Consensus.Other.Batch(model));
        }
Ejemplo n.º 6
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:PackModel" /> instances.
        /// </summary>
        /// <param name="packSellingCompanyIdId">
        ///     The value which identifies the <see cref="!:PackModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PackModel" /> instances that match the specified <paramref name="packSellingCompanyIdId" />.
        /// </returns>
        public static IEnumerable <Consensus.Document.Pack> FetchAllByPackSellingCompanyIdId(ConsensusSite site, System.String packSellingCompanyIdId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Document.IPackModel> collection = provider.Document.Pack.FetchAllByPackSellingCompanyIdId(packSellingCompanyIdId);

            return(collection.Select(model => new Consensus.Document.Pack(model)));
        }
Ejemplo n.º 7
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:OpportunityModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:OpportunityModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:OpportunityModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Sales.Opportunity FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Sales.IOpportunityModel model = provider.Sales.Opportunity.FetchById(id);
            return(model == null ? null : new Consensus.Sales.Opportunity(model));
        }
Ejemplo n.º 8
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:CommunicationsModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:CommunicationsModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:CommunicationsModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Contact.Communications FetchById(ConsensusSite site, System.Int64 id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Contact.ICommunicationsModel model = provider.Contact.Communications.FetchById(id);
            return(model == null ? null : new Consensus.Contact.Communications(model));
        }
Ejemplo n.º 9
0
        /// <summary>
        ///     Retrieves a single <see cref="!:CodeModel" /> instance from the data store.
        /// </summary>
        /// <param name="codeValue3">
        ///     The unique value which distinctly identifies the <see cref="!:CodeModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:CodeModel" /> instance that matches the specified <paramref name="codeValue3" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Common.Code FetchByTypeAndCodeValue3(ConsensusSite site, System.String codeType, System.String codeValue3)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.ICodeModel model = provider.Common.Code.FetchByTypeAndCodeValue3(codeType, codeValue3);
            return(model == null ? null : new Consensus.Common.Code(model));
        }
Ejemplo n.º 10
0
        /// <summary>
        ///     Creates a new <see cref="!:CommunicationsModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:CommunicationsModel" /> instance.
        /// </returns>
        public static Consensus.Contact.Communications Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Contact.ICommunicationsModel model = provider.Contact.Communications.Create();
            return(model == null ? null : new Consensus.Contact.Communications(model));
        }
Ejemplo n.º 11
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:CommunicationsModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:CommunicationsModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Contact.Communications> FetchAll(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Contact.ICommunicationsModel> collection = provider.Contact.Communications.FetchAll();

            return(collection.Select(model => new Consensus.Contact.Communications(model)));
        }
Ejemplo n.º 12
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:ScreenObjectDisplayModel" /> instances.
        /// </summary>
        /// <param name="principalId">
        ///     The value which identifies the <see cref="!:ScreenObjectDisplayModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:ScreenObjectDisplayModel" /> instances that match the specified <paramref name="principalId" />.
        /// </returns>
        public static IEnumerable <Consensus.UserInterface.ScreenObjectDisplay> FetchAllByPrincipalId(ConsensusSite site, System.Int32 principalId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.UserInterface.IScreenObjectDisplayModel> collection = provider.UserInterface.ScreenObjectDisplay.FetchAllByPrincipalId(principalId);

            return(collection.Select(model => new Consensus.UserInterface.ScreenObjectDisplay(model)));
        }
Ejemplo n.º 13
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:ScreenObjectDisplayModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:ScreenObjectDisplayModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:ScreenObjectDisplayModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.UserInterface.ScreenObjectDisplay FetchById(ConsensusSite site, System.Int32 id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.UserInterface.IScreenObjectDisplayModel model = provider.UserInterface.ScreenObjectDisplay.FetchById(id);
            return(model == null ? null : new Consensus.UserInterface.ScreenObjectDisplay(model));
        }
Ejemplo n.º 14
0
        /// <summary>
        ///     Creates a new <see cref="!:ScreenObjectDisplayModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:ScreenObjectDisplayModel" /> instance.
        /// </returns>
        public static Consensus.UserInterface.ScreenObjectDisplay Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.UserInterface.IScreenObjectDisplayModel model = provider.UserInterface.ScreenObjectDisplay.Create();
            return(model == null ? null : new Consensus.UserInterface.ScreenObjectDisplay(model));
        }
Ejemplo n.º 15
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:PackModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:PackModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Document.Pack> FetchAll(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Document.IPackModel> collection = provider.Document.Pack.FetchAll();

            return(collection.Select(model => new Consensus.Document.Pack(model)));
        }
Ejemplo n.º 16
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:CodeModel" /> instance.
        /// </summary>
        /// <returns>
        ///     The <see cref="!:CodeModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static IEnumerable <Consensus.Common.Code> FetchAllByType(ConsensusSite site, System.String codeType)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.ICodeModel> collection = provider.Common.Code.FetchAllByType(codeType);

            return(collection.Select(model => new Consensus.Common.Code(model)));
        }
Ejemplo n.º 17
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:PackModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:PackModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PackModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Document.Pack FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Document.IPackModel model = provider.Document.Pack.FetchById(id);
            return(model == null ? null : new Consensus.Document.Pack(model));
        }
Ejemplo n.º 18
0
        /// <summary>
        ///     Creates a new <see cref="!:CodeModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:CodeModel" /> instance.
        /// </returns>
        public static Consensus.Common.Code Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.ICodeModel model = provider.Common.Code.Create();
            return(model == null ? null : new Consensus.Common.Code(model));
        }
Ejemplo n.º 19
0
        /// <summary>
        ///     Creates a new <see cref="!:OpportunityModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:OpportunityModel" /> instance.
        /// </returns>
        public static Consensus.Sales.Opportunity Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Sales.IOpportunityModel model = provider.Sales.Opportunity.Create();
            return(model == null ? null : new Consensus.Sales.Opportunity(model));
        }
Ejemplo n.º 20
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:CodeModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:CodeModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:CodeModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Common.Code FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Common.ICodeModel model = provider.Common.Code.FetchById(id);
            return(model == null ? null : new Consensus.Common.Code(model));
        }
Ejemplo n.º 21
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:OpportunityModel" /> instances.
        /// </summary>
        /// <param name="productId">
        ///     The value which identifies the <see cref="!:OpportunityModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:OpportunityModel" /> instances that match the specified <paramref name="productId" />.
        /// </returns>
        public static IEnumerable <Consensus.Sales.Opportunity> FetchAllByProductId(ConsensusSite site, System.String productId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Sales.IOpportunityModel> collection = provider.Sales.Opportunity.FetchAllByProductId(productId);

            return(collection.Select(model => new Consensus.Sales.Opportunity(model)));
        }
Ejemplo n.º 22
0
        /// <summary>
        ///     Creates a new <see cref="!:ComplaintModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:ComplaintModel" /> instance.
        /// </returns>
        public static Consensus.Activities.Complaint Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Activities.IComplaintModel model = provider.Activities.Complaint.Create();
            return(model == null ? null : new Consensus.Activities.Complaint(model));
        }
Ejemplo n.º 23
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:BatchModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:BatchModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Other.Batch> FetchAll(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Other.IBatchModel> collection = provider.Other.Batch.FetchAll();

            return(collection.Select(model => new Consensus.Other.Batch(model)));
        }
Ejemplo n.º 24
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:ComplaintModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:ComplaintModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:ComplaintModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Activities.Complaint FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Activities.IComplaintModel model = provider.Activities.Complaint.FetchById(id);
            return(model == null ? null : new Consensus.Activities.Complaint(model));
        }
Ejemplo n.º 25
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:BatchModel" /> instances.
        /// </summary>
        /// <param name="sellingCompanyId">
        ///     The value which identifies the <see cref="!:BatchModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:BatchModel" /> instances that match the specified <paramref name="sellingCompanyId" />.
        /// </returns>
        public static IEnumerable <Consensus.Other.Batch> FetchAllBySellingCompanyId(ConsensusSite site, System.String sellingCompanyId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Other.IBatchModel> collection = provider.Other.Batch.FetchAllBySellingCompanyId(sellingCompanyId);

            return(collection.Select(model => new Consensus.Other.Batch(model)));
        }
Ejemplo n.º 26
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:ComplaintModel" /> instances.
        /// </summary>
        /// <param name="detailsIdId">
        ///     The value which identifies the <see cref="!:ComplaintModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:ComplaintModel" /> instances that match the specified <paramref name="detailsIdId" />.
        /// </returns>
        public static IEnumerable <Consensus.Activities.Complaint> FetchAllByDetailsIdId(ConsensusSite site, System.String detailsIdId)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Activities.IComplaintModel> collection = provider.Activities.Complaint.FetchAllByDetailsIdId(detailsIdId);

            return(collection.Select(model => new Consensus.Activities.Complaint(model)));
        }
        /// <summary>
        ///     Retrieves a specific <see cref="!:SellingCompanyConfigModel" /> instance.
        /// </summary>
        /// <returns>
        ///     The <see cref="!:SellingCompanyConfigModel" /> instance that matches the specified <paramref name="sellingCompanyId" />; or null, if no matching instance can be found.
        /// </returns>
        public static IEnumerable <Consensus.Common.SellingCompanyConfig> FetchAllBySellingCompanyIdKeyName(ConsensusSite site, System.String sellingCompanyId, System.String keyName)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.ISellingCompanyConfigModel> collection = provider.Common.SellingCompanyConfig.FetchAllBySellingCompanyIdKeyName(sellingCompanyId, keyName);

            return(collection.Select(model => new Consensus.Common.SellingCompanyConfig(model)));
        }
Ejemplo n.º 28
0
        /// <summary>
        ///     Creates a new <see cref="!:PackModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:PackModel" /> instance.
        /// </returns>
        public static Consensus.Document.Pack Create(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Document.IPackModel model = provider.Document.Pack.Create();
            return(model == null ? null : new Consensus.Document.Pack(model));
        }
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:SellingCompanyConfigModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:SellingCompanyConfigModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Common.SellingCompanyConfig> FetchAll(ConsensusSite site)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();
            IEnumerable <Consensus.Common.ISellingCompanyConfigModel> collection = provider.Common.SellingCompanyConfig.FetchAll();

            return(collection.Select(model => new Consensus.Common.SellingCompanyConfig(model)));
        }
Ejemplo n.º 30
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:PriceModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:PriceModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PriceModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Finance.Price FetchById(ConsensusSite site, System.String id)
        {
            IBusinessProvider provider = site.GetService <IBusinessProvider>();

            Consensus.Finance.IPriceModel model = provider.Finance.Price.FetchById(id);
            return(model == null ? null : new Consensus.Finance.Price(model));
        }