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; }
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; }
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)); } }
public ProjectTask CreateProjectTask(ulong id, Project project, ProjectStage projectStage, Workset workset, bool isAddCost, bool isMistake) { return(new ProjectTask(id, project, projectStage, workset, isAddCost, isMistake)); }