Ejemplo n.º 1
0
        public IStatusGeneric UpdateProject(string wbsCode, WfCalculationType calType)
        {
            var status = new StatusGenericHandler();

            //All Ok
            this.WBSCode         = wbsCode;
            this.CalculationType = calType;

            return(status);
        }
Ejemplo n.º 2
0
        public static IStatusGeneric <ProjectWBS> CreateProjectWBS(WBSType type, long targetId, float wf, string wbsCode,
                                                                   Guid projectId, long?parentId, string name, WfCalculationType calType)
        {
            var status = new StatusGenericHandler <ProjectWBS>();

            var newItem = new ProjectWBS
            {
                ParentId        = parentId,
                ProjectId       = projectId,
                TargetId        = targetId,
                Type            = type,
                WBSCode         = wbsCode,
                WF              = wf,
                Name            = name,
                CalculationType = calType,
            };

            status.Result = newItem;
            return(status);
        }
Ejemplo n.º 3
0
 public ProjectWBS(WBSType type, long targetId, float wf, string wbsCode, Guid projectId, long?parentId, string name, WfCalculationType caltype)
 {
     this.Id              = targetId;
     this.Type            = type;
     this.TargetId        = targetId;
     this.WF              = wf;
     this.WBSCode         = wbsCode;
     this.ProjectId       = projectId;
     this.ParentId        = parentId;
     this.Name            = name;
     this.CalculationType = caltype;
     this.Progress        = 0;
     this.ActivityCount   = 0;
     this.Childeren       = new List <ProjectWBS>();
 }
Ejemplo n.º 4
0
        public static ProjectWBS CreateProjectWBSToParent(WBSType type, long targetId, float wf, string wbsCode,
                                                          Guid projectId, string name, ProjectWBS parent, WfCalculationType calType)
        {
            var newItem = new ProjectWBS
            {
                ProjectId = projectId,
                TargetId  = targetId,
                Type      = type,
                WBSCode   = wbsCode,
                WF        = wf,
                Name      = name,
                Parent    = parent,
                ParentId  = parent.Id
            };

            newItem.Childeren = new List <ProjectWBS>();
            return(newItem);
        }