public static ResourceCategory CreateResourceCategory(string dataAreaId,
                                                              string roleId,
                                                              global::Microsoft.Dynamics.DataEntities.ProjectEmplForecast projectEmplForecast,
                                                              global::Microsoft.Dynamics.DataEntities.ProjectExpenseForecast projectExpenseForecast,
                                                              global::Microsoft.Dynamics.DataEntities.ProjectFeeForecast projectFeeForecast,
                                                              global::Microsoft.Dynamics.DataEntities.JournalTrans journalTrans)
        {
            ResourceCategory resourceCategory = new ResourceCategory();

            resourceCategory.dataAreaId = dataAreaId;
            resourceCategory.RoleId     = roleId;
            if ((projectEmplForecast == null))
            {
                throw new global::System.ArgumentNullException("projectEmplForecast");
            }
            resourceCategory.ProjectEmplForecast = projectEmplForecast;
            if ((projectExpenseForecast == null))
            {
                throw new global::System.ArgumentNullException("projectExpenseForecast");
            }
            resourceCategory.ProjectExpenseForecast = projectExpenseForecast;
            if ((projectFeeForecast == null))
            {
                throw new global::System.ArgumentNullException("projectFeeForecast");
            }
            resourceCategory.ProjectFeeForecast = projectFeeForecast;
            if ((journalTrans == null))
            {
                throw new global::System.ArgumentNullException("journalTrans");
            }
            resourceCategory.JournalTrans = journalTrans;
            return(resourceCategory);
        }
        public static ProjectResource CreateProjectResource(string resourceId,
                                                            string resourceCompanyId,
                                                            global::Microsoft.Dynamics.DataEntities.ProjectEmplForecast projectEmplForecast,
                                                            global::Microsoft.Dynamics.DataEntities.ProjectExpenseForecast projectExpenseForecast,
                                                            global::Microsoft.Dynamics.DataEntities.ProjectFeeForecast projectFeeForecast,
                                                            global::Microsoft.Dynamics.DataEntities.JournalTrans journalTrans)
        {
            ProjectResource projectResource = new ProjectResource();

            projectResource.ResourceId        = resourceId;
            projectResource.ResourceCompanyId = resourceCompanyId;
            if ((projectEmplForecast == null))
            {
                throw new global::System.ArgumentNullException("projectEmplForecast");
            }
            projectResource.ProjectEmplForecast = projectEmplForecast;
            if ((projectExpenseForecast == null))
            {
                throw new global::System.ArgumentNullException("projectExpenseForecast");
            }
            projectResource.ProjectExpenseForecast = projectExpenseForecast;
            if ((projectFeeForecast == null))
            {
                throw new global::System.ArgumentNullException("projectFeeForecast");
            }
            projectResource.ProjectFeeForecast = projectFeeForecast;
            if ((journalTrans == null))
            {
                throw new global::System.ArgumentNullException("journalTrans");
            }
            projectResource.JournalTrans = journalTrans;
            return(projectResource);
        }
        public static ProjectLineProperty CreateProjectLineProperty(string dataAreaId,
                                                                    string linePropertyId,
                                                                    decimal costPercentage,
                                                                    bool enabledCapitalizeCost,
                                                                    bool enableAccrueRevenue,
                                                                    decimal salesPercentage,
                                                                    global::Microsoft.Dynamics.DataEntities.ProjectItemForecast projectItemForecast,
                                                                    global::Microsoft.Dynamics.DataEntities.ProjectEmplForecast projectEmplForecast,
                                                                    global::Microsoft.Dynamics.DataEntities.ProjectItemJournalTrans projectItemJournalTrans,
                                                                    global::Microsoft.Dynamics.DataEntities.ProjectExpenseForecast projectExpenseForecast,
                                                                    global::Microsoft.Dynamics.DataEntities.ProjectFeeForecast projectFeeForecast,
                                                                    global::Microsoft.Dynamics.DataEntities.JournalTrans journalTrans)
        {
            ProjectLineProperty projectLineProperty = new ProjectLineProperty();

            projectLineProperty.dataAreaId            = dataAreaId;
            projectLineProperty.LinePropertyId        = linePropertyId;
            projectLineProperty.CostPercentage        = costPercentage;
            projectLineProperty.EnabledCapitalizeCost = enabledCapitalizeCost;
            projectLineProperty.EnableAccrueRevenue   = enableAccrueRevenue;
            projectLineProperty.SalesPercentage       = salesPercentage;
            if ((projectItemForecast == null))
            {
                throw new global::System.ArgumentNullException("projectItemForecast");
            }
            projectLineProperty.ProjectItemForecast = projectItemForecast;
            if ((projectEmplForecast == null))
            {
                throw new global::System.ArgumentNullException("projectEmplForecast");
            }
            projectLineProperty.ProjectEmplForecast = projectEmplForecast;
            if ((projectItemJournalTrans == null))
            {
                throw new global::System.ArgumentNullException("projectItemJournalTrans");
            }
            projectLineProperty.ProjectItemJournalTrans = projectItemJournalTrans;
            if ((projectExpenseForecast == null))
            {
                throw new global::System.ArgumentNullException("projectExpenseForecast");
            }
            projectLineProperty.ProjectExpenseForecast = projectExpenseForecast;
            if ((projectFeeForecast == null))
            {
                throw new global::System.ArgumentNullException("projectFeeForecast");
            }
            projectLineProperty.ProjectFeeForecast = projectFeeForecast;
            if ((journalTrans == null))
            {
                throw new global::System.ArgumentNullException("journalTrans");
            }
            projectLineProperty.JournalTrans = journalTrans;
            return(projectLineProperty);
        }
 partial void OnProjectEmplForecastChanging(global::Microsoft.Dynamics.DataEntities.ProjectEmplForecast value);