Package com.peusoft.ptcollect.core.persistance.domain

Examples of com.peusoft.ptcollect.core.persistance.domain.ProjectActivity


        p.setProjectNumber("00001");
        p.setProjectPeriod(new DayPeriod());
        p.setBudget(new BigDecimal("100.00"));
        objects.add(p);
        to_delete.add(0, p);
        ProjectActivity pa = new ProjectActivity();
        pa.setProject(p);
        pa.setProjectActivityName("TestProjectActivity");
        objects.add(pa);
        to_delete.add(0, pa);
        UserProjectActivity upa = new UserProjectActivity();
        upa.setProjectActivity(pa);
        upa.setUser(user);
View Full Code Here


        p.setProjectPeriod(dp);
        p.setBudget(new BigDecimal("1000.00").setScale(2, BigDecimal.ROUND_HALF_UP));
        new_objs.add(p);
        del_objs.push(p);

        ProjectActivity pa = new ProjectActivity();
        pa.setProject(p);
        pa.setProjectActivityName("TestActivity1");
        new_objs.add(pa);
        del_objs.push(pa);

        UserProjectActivity upa = new UserProjectActivity();
        upa.setUser(user);
View Full Code Here

    }

    @Override
    public boolean isObjectInUse(Project project) {
        boolean ret = false;
        ProjectActivity pa = projectActivityDao.findMaxOneObject("select * from ProjectActivity pa where pa.project = ?1", project);
        if (pa != null) {
            ret = true;
        }
        Contract contract = contractDao.findMaxOneObject("select * from Contract c where c.project = ?1", project);
        if (contract != null) {
View Full Code Here

        p.setProjectNumber("00001");
        p.setProjectPeriod(new DayPeriod());
        p.setBudget(new BigDecimal("100.00"));
        objects.add(p);
        to_delete.add(0, p);
        ProjectActivity pa = new ProjectActivity();
        pa.setProject(p);
        pa.setProjectActivityName("TestProjectActivity");
        objects.add(pa);
        to_delete.add(0, pa);
        UserProjectActivity upa = new UserProjectActivity();
        upa.setProjectActivity(pa);
        upa.setUser(user);
View Full Code Here

public class ProjectActivity1 {

    public static final String NAME = "Activity1";

    public static ProjectActivity getProjectActivity(Project project) {
        ProjectActivity projectActivity = new ProjectActivity();
        projectActivity.setProject(project);
        projectActivity.setProjectActivityName(NAME);
        return projectActivity;
    }
View Full Code Here

public class ProjectActivity2 {

    public static final String NAME = "Activity2";

    public static ProjectActivity getProjectActivity(Project project) {
        ProjectActivity projectActivity = new ProjectActivity();
        projectActivity.setProject(project);
        projectActivity.setProjectActivityName(NAME);
        return projectActivity;
    }
View Full Code Here

        p.setProjectPeriod(dp);
        p.setBudget(new BigDecimal("1000.00").setScale(2, BigDecimal.ROUND_HALF_UP));
        new_objs.add(p);
        del_objs.push(p);

        ProjectActivity pa = new ProjectActivity();
        pa.setProject(p);
        pa.setProjectActivityName("TestActivity1");
        new_objs.add(pa);
        del_objs.push(pa);

        UserProjectActivity upa = new UserProjectActivity();
        upa.setUser(user);
View Full Code Here

TOP

Related Classes of com.peusoft.ptcollect.core.persistance.domain.ProjectActivity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.