Example #1
0
 public ProjectView(PROJECT project,
     User submittedBy,
     User requestedBy,
     IList<RequestView> requestList,
     SupportArea supportArea,
     Program program,
     ValueDriver valueDriver,
     LookupSorted projectStatus,
     LookupActive projectType,
     decimal? internalHoursMultiplier,
     decimal? externalHoursMultiplier,
     User assignedTo)
     : base(project,
             submittedBy,
             requestedBy, 
             supportArea,
             program,
             valueDriver,
             projectStatus,
             projectType,
             internalHoursMultiplier,
             externalHoursMultiplier,
             assignedTo)
 {
     this.StartDate = project.START_DATE;
     this.RequestList = requestList == null ? new List<RequestView>() : requestList;
 }
Example #2
0
 public AProjectView(PROJECT project,
     User submittedBy,
     User requestedBy,
     SupportArea supportArea,
     Program program,
     ValueDriver valueDriver,
     LookupSorted projectStatus,
     LookupActive projectType,
     decimal? internalHoursMultiplier,
     decimal? externalHoursMultiplier,
     User assignedTo)
     : base(project.PROJECT_ID, 
             projectStatus,
             project.SUBMITTED_DATE, 
             project.CLOSED_DATE, 
             project.LAST_UPDATED_DATE, 
             project.PROJECT_SUMMARY)
 {
     createDetails(requestedBy,
                     submittedBy,
                     projectType,
                     supportArea,
                     valueDriver,
                     project.REQUESTED_DUE_DATE,
                     project.ESTIMATED_DUE_DATE,
                     project.HOLD_DATE,
                     project.RESUME_DATE,
                     project.MANAGER_QUEUE_DATE,
                     project.MANAGER_APPROVED_DATE,
                     project.ESTIMATED_HOURS,
                     (decimal)project.VALUE,
                     project.ESTIMATED_COST,
                     project.ACTUAL_COST,
                     project.PROJECT_DESCRIPTION,
                     project.VALUE_REASON,
                     project.MANAGER_NOTE,
                     program,
                     internalHoursMultiplier,
                     externalHoursMultiplier,
                     assignedTo);
 }
Example #3
0
 private ProjectView convertProject(PROJECT project)
 {
     UserMgr userMgr = new UserMgr(MainFactory.getUserSvc());
     LookupMgr lookupMgr = new LookupMgr(this.svc);
     Configuration config = MainFactory.getConfiguration();
     return new ProjectView(project,
                 (User)userMgr.getUser(project.SUBMITTED_BY_ID),
                 (User)userMgr.getUser(project.REQUESTED_BY_ID),
                 null,
                 lookupMgr.getSupportAreas().Where(x => x.ID == project.SUPPORT_AREA_ID).FirstOrDefault(),
                 lookupMgr.getPrograms().Where(x => x.ID == project.PROGRAM_ID).Cast<Program>().FirstOrDefault(),
                 lookupMgr.getValueDrivers().Where(x => x.ID == project.VALUE_DRIVER_ID).Cast<ValueDriver>().FirstOrDefault(),
                 this.projectStatusList.Data.Where(x => x.ID == project.PROJECT_STATUS_ID).FirstOrDefault(),
                 lookupMgr.getRequestTypes(EOpenType.Project, false).Where(x => x.ID == project.PROJECT_TYPE_ID).FirstOrDefault(),
                 Decimal.Parse((string)config.get("HoursCostMultiplierInternal")),
                 Decimal.Parse((string)config.get("HoursCostMultiplierExternal")),
                 (User)userMgr.getUser(project.PROJECT_LEAD_ID ?? 0));
 }
Example #4
0
 partial void UpdatePROJECT(PROJECT instance);
Example #5
0
 partial void DeletePROJECT(PROJECT instance);
Example #6
0
 partial void InsertPROJECT(PROJECT instance);
Example #7
0
		private void detach_PROJECTs(PROJECT entity)
		{
			this.SendPropertyChanging();
			entity.VALUE_DRIVER = null;
		}
Example #8
0
		private void detach_PROJECTs(PROJECT entity)
		{
			this.SendPropertyChanging();
			entity.PROJECT_TYPE = null;
		}
Example #9
0
		private void attach_PROJECTs(PROJECT entity)
		{
			this.SendPropertyChanging();
			entity.PROJECT_TYPE = this;
		}
Example #10
0
		private void detach_PROJECTs(PROJECT entity)
		{
			this.SendPropertyChanging();
			entity.SUPPORT_AREA = null;
		}