コード例 #1
0
        public static Goal CreateGoal(string goal1,
                                      string personnelNumber,
                                      string goalHeadingId,
                                      global::System.DateTimeOffset dateFinished,
                                      global::System.DateTimeOffset startDate,
                                      global::System.DateTimeOffset endDate,
                                      decimal percentComplete,
                                      global::Microsoft.Dynamics.DataEntities.GoalHeading goalHeading,
                                      global::Microsoft.Dynamics.DataEntities.Worker worker)
        {
            Goal goal = new Goal();

            goal.Goal1           = goal1;
            goal.PersonnelNumber = personnelNumber;
            goal.GoalHeadingId   = goalHeadingId;
            goal.DateFinished    = dateFinished;
            goal.StartDate       = startDate;
            goal.EndDate         = endDate;
            goal.PercentComplete = percentComplete;
            if ((goalHeading == null))
            {
                throw new global::System.ArgumentNullException("goalHeading");
            }
            goal.GoalHeading = goalHeading;
            if ((worker == null))
            {
                throw new global::System.ArgumentNullException("worker");
            }
            goal.Worker = worker;
            return(goal);
        }
コード例 #2
0
 partial void OnGoalHeadingChanging(global::Microsoft.Dynamics.DataEntities.GoalHeading value);