Пример #1
0
 public ProjectTask(ulong id, Project project, ProjectStage projectStage, Workset workset,
                    bool isAddCost, bool isMistake)
     : base(id, project)
 {
     ProjectStage = projectStage;
     Workset      = workset;
     IsAddCost    = isAddCost;
     IsMistake    = isMistake;
 }
Пример #2
0
 public ProjectTask(ulong id, Project project, DateTime startTime, DateTime endTime, ProjectStage projectStage, Workset workset,
                    bool isAddCost, bool isMistake)
     : base(id, project, startTime, endTime)
 {
     ProjectStage = projectStage;
     Workset      = workset;
     IsAddCost    = isAddCost;
     IsMistake    = isMistake;
 }
Пример #3
0
 public BaseTask CreateTask(ulong id, Project project, ProjectStage projectStage, Workset workset,
                            bool isAddCost, bool isMistake)
 {
     if (project.ProjectType == ProjectType.Engineer)
     {
         return(new ProjectTask(id, project, projectStage, workset, isAddCost, isMistake));
     }
     else
     {
         return(new OfficeTask(id, project));
     }
 }
Пример #4
0
 public ProjectTask CreateProjectTask(ulong id, Project project, ProjectStage projectStage, Workset workset,
                                      bool isAddCost, bool isMistake)
 {
     return(new ProjectTask(id, project, projectStage, workset, isAddCost, isMistake));
 }