Exemplo n.º 1
0
 /// <summary>
 /// Create a new SchedulerView object.
 /// </summary>
 /// <param name="rS_ForecastID">Initial value of the RS_ForecastID property.</param>
 /// <param name="forecastHours">Initial value of the ForecastHours property.</param>
 /// <param name="employeeID">Initial value of the EmployeeID property.</param>
 /// <param name="clientID">Initial value of the ClientID property.</param>
 /// <param name="projectID">Initial value of the ProjectID property.</param>
 /// <param name="projectName">Initial value of the ProjectName property.</param>
 /// <param name="week">Initial value of the Week property.</param>
 /// <param name="appProjectID">Initial value of the AppProjectID property.</param>
 /// <param name="billable">Initial value of the Billable property.</param>
 public static SchedulerView CreateSchedulerView(global::System.Int32 rS_ForecastID, global::System.Decimal forecastHours, global::System.String employeeID, global::System.Int32 clientID, global::System.Int32 projectID, global::System.String projectName, global::System.DateTime week, global::System.String appProjectID, global::System.Boolean billable)
 {
     SchedulerView schedulerView = new SchedulerView();
     schedulerView.RS_ForecastID = rS_ForecastID;
     schedulerView.ForecastHours = forecastHours;
     schedulerView.EmployeeID = employeeID;
     schedulerView.ClientID = clientID;
     schedulerView.ProjectID = projectID;
     schedulerView.ProjectName = projectName;
     schedulerView.Week = week;
     schedulerView.AppProjectID = appProjectID;
     schedulerView.Billable = billable;
     return schedulerView;
 }
        private Resource GetResource(SchedulerView view)
        {
            if (!resources.ContainsKey(view.UserID))
            {
                resources.Add(view.UserID, new Resource()
                {
                    EmailAddress = view.EmailAddress,
                    FirstName = view.FirstName,
                    LastName = view.LastName,
                    UserId = view.UserID
                });
            }

            return resources[view.UserID];
        }
Exemplo n.º 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SchedulerView EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSchedulerView(SchedulerView schedulerView)
 {
     base.AddObject("SchedulerView", schedulerView);
 }