Beispiel #1
0
 public ReportEngine(IDaoFactory daoFactory)
 {
     reportDao    = daoFactory.GetReportDao();
     projectDao   = daoFactory.GetProjectDao();
     taskDao      = daoFactory.GetTaskDao();
     milestoneDao = daoFactory.GetMilestoneDao();
 }
        public void Create(IProjectDao dao)
        {
            var p = new Project(Product)
            {
                Name = Name,
            };

            dao.SaveOrUpdate(p);
            var _roleDao  = OrnamentContext.Current.MemberShipFactory().CreateRoleDao();
            var addMethod = new VoidFunc <IPerformer[], Role>((performers, role) =>
            {
                _roleDao.SaveOrUpdate(role);
                _roleDao.Flush();
                foreach (IPerformer performer in performers)
                {
                    var member = (IMember)performer;
                    member.AddRole(role);
                }
            });

            addMethod(Testers, p.Tester);
            addMethod(Developers, p.Developer);
            addMethod(TesterManager, p.TestManager);
            addMethod(DeveloperManager, p.DeveloperManager);
        }
 public ContractController(ICommandService commandService, IProjectDao projectDao, ISubprocessDao subprocessDao,IControlTableDao controlDao)
 {
     _projectDao = projectDao;
     _commandService = commandService;
     _subprocessDao = subprocessDao;
     _controlDao = controlDao;
 }
Beispiel #4
0
 public SearchEngine(IDaoFactory daoFactory, EngineFactory factory)
 {
     searchDao    = daoFactory.GetSearchDao();
     projDao      = daoFactory.GetProjectDao();
     this.factory = factory;
     searchItems  = new List <SearchItem>();
 }
 public ProposalController(ICommandService commandService, IProjectDao projectDao, IProposalDao proposalDao,ISubprocessDao subprocessDao)
 {
     this.projectDao = projectDao;
     this.commandService = commandService;
     this.proposalDao = proposalDao;
     this.subprocessDao = subprocessDao;
 }
 public ProjectEngine(IDaoFactory daoFactory, EngineFactory factory)
 {
     this.factory    = factory;
     projectDao      = daoFactory.GetProjectDao();
     participantDao  = daoFactory.GetParticipantDao();
     canReadDelegate = CanRead;
 }
Beispiel #7
0
 public ReportEngine(IDaoFactory daoFactory)
 {
     reportDao = daoFactory.GetReportDao();
     projectDao = daoFactory.GetProjectDao();
     taskDao = daoFactory.GetTaskDao();
     milestoneDao = daoFactory.GetMilestoneDao();
 }
Beispiel #8
0
 public PushCommand(IAntilFileDao antilFileDao,
                    IProjectDao projectDao,
                    IUserDao userDao,
                    ICommitDao commitDao)
 {
     this.antilFileDao = antilFileDao;
     this.projectDao   = projectDao;
     this.userDao      = userDao;
     this.commitDao    = commitDao;
     cmdHandler        = new HttpCommandHandler(this);
 }
Beispiel #9
0
        public void AcceptProjectChangeRequest()
        {
            IDaoFactory daoFactory = new DaoFactory("projects", 0);

            IProjectDao _projectDao = daoFactory.GetProjectDao();
            IProjectChangeRequestDao _projectChangeRequestDao = daoFactory.GetProjectChangeRequestDao();

            ProjectChangeRequest projectChangeRequest = daoFactory.GetProjectChangeRequestDao().GetById(48);

            Project project = projectChangeRequest.RequestType == ProjectRequestType.Edit ? _projectDao.GetById(projectChangeRequest.ProjectID) : new Project();

            project.Title       = projectChangeRequest.Title;
            project.Description = projectChangeRequest.Description;
            project.Responsible = projectChangeRequest.Responsible;
            project.Status      = projectChangeRequest.Status;


            project = _projectDao.Save(project);
            daoFactory.GetProjectDao().AddToTeam(project.ID, project.Responsible);
            _projectChangeRequestDao.Delete(projectChangeRequest.ID);
        }
 public void Create(IProjectDao dao)
 {
     var p = new Project(Product)
         {
             Name = Name,
         };
     dao.SaveOrUpdate(p);
     var _roleDao = OrnamentContext.Current.MemberShipFactory().CreateRoleDao();
     var addMethod = new VoidFunc<IPerformer[], Role>((performers, role) =>
         {
             _roleDao.SaveOrUpdate(role);
             _roleDao.Flush();
             foreach (IPerformer performer in performers)
             {
                 var member = (IMember)performer;
                 member.AddRole(role);
             }
         });
     addMethod(Testers, p.Tester);
     addMethod(Developers, p.Developer);
     addMethod(TesterManager, p.TestManager);
     addMethod(DeveloperManager, p.DeveloperManager);
 }
Beispiel #11
0
 public ProjectBLL()
 {
     dal = new ImplProject()
     {
     };
 }
Beispiel #12
0
 public ReportEngine(IDaoFactory daoFactory)
 {
     reportDao = daoFactory.GetReportDao();
     projectDao = daoFactory.GetProjectDao();
 }
 public SearchEngine(IDaoFactory daoFactory)
 {
     _searchDao = daoFactory.GetSearchDao();
     _projDao   = daoFactory.GetProjectDao();
 }
Beispiel #14
0
 public ProjectService(IProjectDao projectDao)
 {
     _projectDao = projectDao;
 }
 public ProjectService(IProjectDao projectDao, IUserDao userDao)
 {
     _projectDao = projectDao;
     _userDao    = userDao;
 }
Beispiel #16
0
 public SearchEngine(IDaoFactory daoFactory)
 {
     searchDAO       = daoFactory.GetSearchDao();
     projDao         = daoFactory.GetProjectDao();
     this.daoFactory = daoFactory;
 }
 public TimeTrackingEngine(IDaoFactory daoFactory)
 {
     timeSpendDao = daoFactory.GetTimeSpendDao();
     projectDao   = daoFactory.GetProjectDao();
     taskDao      = daoFactory.GetTaskDao();
 }
 public ControlTableController(ICommandService commandService, IProjectDao projectDao, IControlTableDao controlDao)
 {
     this.commandService = commandService;
     this.projectDao = projectDao;
     this.controlDao = controlDao;
 }
 public ProjectEngine(IDaoFactory daoFactory, EngineFactory factory)
 {
     this.factory = factory;
     projectDao = daoFactory.GetProjectDao();
     participantDao = daoFactory.GetParticipantDao();
 }
Beispiel #20
0
 public ReportEngine(IDaoFactory daoFactory)
 {
     reportDao  = daoFactory.GetReportDao();
     projectDao = daoFactory.GetProjectDao();
 }
 public SearchEngine(IDaoFactory daoFactory)
 {
     _searchDao = daoFactory.GetSearchDao();
     _projDao = daoFactory.GetProjectDao();
 }
Beispiel #22
0
 public SearchEngine(IDaoFactory daoFactory)
 {
     searchDAO = daoFactory.GetSearchDao();
     projDao = daoFactory.GetProjectDao();
     this.daoFactory = daoFactory;
 }
Beispiel #23
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public ProjectMgeSvr() : base()
 {
     _SessionMgeSvr = ServiceManager.GetService <ISessionMgeSvr>();
     daoManager     = ServiceConfig.GetInstance().DaoManager;
     _ProjectDao    = (IProjectDao)daoManager.GetDao(typeof(IProjectDao));
 }
 public AssessmentController(ICommandService commandService, IProjectDao projectDao, IAssessmentDao assessDao)
 {
     this.projectDao = projectDao;
     this.commandService = commandService;
     this.assessDao = assessDao;
 }
 public PreparationController(ICommandService commandService, IProjectDao projectDao,IAssessmentDao assessDao)
 {
     _commandService = commandService;
     _projectDao = projectDao;
     _assessDao = assessDao;
 }
 public TimeTrackingEngine(IDaoFactory daoFactory)
 {
     timeSpendDao = daoFactory.GetTimeSpendDao();
     projectDao = daoFactory.GetProjectDao();
     taskDao = daoFactory.GetTaskDao();
 }
Beispiel #27
0
 public ProjectService(IProjectDao projectDao, IAdoTemplate adoTemplate, ILogger <SystemService> logger)
     : base(adoTemplate, logger)
 {
     ProjectDao = projectDao;
     Logger     = logger;
 }
Beispiel #28
0
 public ProjectEngine(IDaoFactory daoFactory, EngineFactory factory)
 {
     this.factory   = factory;
     projectDao     = daoFactory.GetProjectDao();
     participantDao = daoFactory.GetParticipantDao();
 }
Beispiel #29
0
 public ProjectService(IProjectDao projectDao)
 {
     _projectDao = projectDao;
 }
 public ProjectController(IProjectDao projectDao)
 {
     _projectDao = projectDao;
 }
Beispiel #31
0
 public ParticipantDao(int tenant, IProjectDao projectDao) : base(tenant)
 {
     ProjectDao = projectDao;
 }
 public ProjectController(ICommandService commandService, IProjectDao projectDao)
 {
     this.projectDao = projectDao;
     this.commandService = commandService;
 }