Replaced tabs for 4-spaces in several files.
This commit is contained in:
parent
8ee51a7721
commit
0acc29aadf
31 changed files with 295 additions and 295 deletions
12
debian/maven-settings.xml
vendored
12
debian/maven-settings.xml
vendored
|
|
@ -1,9 +1,9 @@
|
|||
<settings
|
||||
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
||||
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
||||
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
|
||||
<!-- Change this to something inside the build directory -->
|
||||
<localRepository>${env.CURDIR}/debian/maven-repo</localRepository>
|
||||
<!-- Change this to something inside the build directory -->
|
||||
<localRepository>${env.CURDIR}/debian/maven-repo</localRepository>
|
||||
</settings>
|
||||
|
|
|
|||
|
|
@ -1,38 +1,38 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<language-addon>
|
||||
<addon-name>ganttz</addon-name>
|
||||
<language-name>xul/html</language-name>
|
||||
<addon-name>ganttz</addon-name>
|
||||
<language-name>xul/html</language-name>
|
||||
|
||||
<extension>zul</extension>
|
||||
<extension>xul</extension>
|
||||
<extension>zul</extension>
|
||||
<extension>xul</extension>
|
||||
|
||||
<zscript>
|
||||
import org.zkoss.ganttz.*;
|
||||
<zscript>
|
||||
import org.zkoss.ganttz.*;
|
||||
</zscript>
|
||||
|
||||
<component>
|
||||
<component-name>planner</component-name>
|
||||
<component-class>org.zkoss.ganttz.Planner</component-class>
|
||||
<component>
|
||||
<component-name>planner</component-name>
|
||||
<component-class>org.zkoss.ganttz.Planner</component-class>
|
||||
<widget-class>ganttz.Planner</widget-class>
|
||||
<macro-uri>~./ganttz/zul/plannerLayout.zul</macro-uri>
|
||||
<!-- mold>
|
||||
<mold-name>default</mold-name>
|
||||
<mold-uri>~./ganttz/planner.dsp</mold-uri>
|
||||
</mold -->
|
||||
</component>
|
||||
<!-- mold>
|
||||
<mold-name>default</mold-name>
|
||||
<mold-uri>~./ganttz/planner.dsp</mold-uri>
|
||||
</mold -->
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>tabSwitcher</component-name>
|
||||
<component-class>org.zkoss.ganttz.TabSwitcher</component-class>
|
||||
<macro-uri>~./ganttz/zul/tabSwitcher.zul</macro-uri>
|
||||
</component>
|
||||
<component>
|
||||
<component-name>tabSwitcher</component-name>
|
||||
<component-class>org.zkoss.ganttz.TabSwitcher</component-class>
|
||||
<macro-uri>~./ganttz/zul/tabSwitcher.zul</macro-uri>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>resourcesLoadPanel</component-name>
|
||||
<component-class>org.zkoss.ganttz.resourceload.ResourcesLoadPanel</component-class>
|
||||
<macro-uri>~./ganttz/zul/resourcesLoadLayout.zul</macro-uri>
|
||||
</component>
|
||||
<component>
|
||||
<component-name>resourcesLoadPanel</component-name>
|
||||
<component-class>org.zkoss.ganttz.resourceload.ResourcesLoadPanel</component-class>
|
||||
<macro-uri>~./ganttz/zul/resourcesLoadLayout.zul</macro-uri>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>resourcesLoadList</component-name>
|
||||
|
|
@ -52,43 +52,43 @@
|
|||
</component>
|
||||
|
||||
|
||||
<component>
|
||||
<component-name>leftPane</component-name>
|
||||
<component-class>org.zkoss.ganttz.LeftPane</component-class>
|
||||
<macro-uri>~./ganttz/zul/leftPane.zul</macro-uri>
|
||||
</component>
|
||||
<component>
|
||||
<component-name>leftPane</component-name>
|
||||
<component-class>org.zkoss.ganttz.LeftPane</component-class>
|
||||
<macro-uri>~./ganttz/zul/leftPane.zul</macro-uri>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>leftTasksTree</component-name>
|
||||
<component-class>org.zkoss.ganttz.LeftTasksTree</component-class>
|
||||
<macro-uri>~./ganttz/zul/leftTasksTree.zul</macro-uri>
|
||||
</component>
|
||||
<component>
|
||||
<component-name>leftTasksTree</component-name>
|
||||
<component-class>org.zkoss.ganttz.LeftTasksTree</component-class>
|
||||
<macro-uri>~./ganttz/zul/leftTasksTree.zul</macro-uri>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>ganttpanel</component-name>
|
||||
<component-class>org.zkoss.ganttz.GanttPanel</component-class>
|
||||
<component>
|
||||
<component-name>ganttpanel</component-name>
|
||||
<component-class>org.zkoss.ganttz.GanttPanel</component-class>
|
||||
<widget-class>ganttz.GanttPanel</widget-class>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<!-- <mold-uri>~./ganttz/ganttpanel.dsp</mold-uri> -->
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<!-- <mold-uri>~./ganttz/ganttpanel.dsp</mold-uri> -->
|
||||
<mold-uri>mold/gantt-panel.js</mold-uri>
|
||||
</mold>
|
||||
</component>
|
||||
</mold>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>resourceload</component-name>
|
||||
<component-class>org.zkoss.ganttz.resourceload.ResourceLoadComponent
|
||||
</component-class>
|
||||
<component>
|
||||
<component-name>resourceload</component-name>
|
||||
<component-class>org.zkoss.ganttz.resourceload.ResourceLoadComponent
|
||||
</component-class>
|
||||
<widget-class>ganttz.resourceload.ResourceLoadComponent</widget-class>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<mold-uri>mold/resource-load-component.js</mold-uri>
|
||||
<!-- <mold-uri>~./ganttz/resourceload/resourceload.dsp</mold-uri> -->
|
||||
</mold>
|
||||
</component>
|
||||
<!-- <mold-uri>~./ganttz/resourceload/resourceload.dsp</mold-uri> -->
|
||||
</mold>
|
||||
</component>
|
||||
|
||||
|
||||
<component>
|
||||
<component>
|
||||
<component-name>taskRow</component-name>
|
||||
<component-class>org.zkoss.ganttz.TaskRow</component-class>
|
||||
<widget-class>ganttz.TaskRow</widget-class>
|
||||
|
|
@ -99,16 +99,16 @@
|
|||
</mold>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>task</component-name>
|
||||
<component-class>org.zkoss.ganttz.TaskComponent</component-class>
|
||||
<component>
|
||||
<component-name>task</component-name>
|
||||
<component-class>org.zkoss.ganttz.TaskComponent</component-class>
|
||||
<widget-class>ganttz.TaskComponent</widget-class>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<!-- <mold-uri>~./ganttz/task.dsp</mold-uri> -->
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<!-- <mold-uri>~./ganttz/task.dsp</mold-uri> -->
|
||||
<mold-uri>mold/task-component.js</mold-uri>
|
||||
</mold>
|
||||
</component>
|
||||
</mold>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>milestone</component-name>
|
||||
|
|
@ -122,64 +122,64 @@
|
|||
</component>
|
||||
|
||||
|
||||
<component>
|
||||
<component-name>taskcontainer</component-name>
|
||||
<component-class>org.zkoss.ganttz.TaskContainerComponent
|
||||
</component-class>
|
||||
<component>
|
||||
<component-name>taskcontainer</component-name>
|
||||
<component-class>org.zkoss.ganttz.TaskContainerComponent
|
||||
</component-class>
|
||||
<widget-class>ganttz.TaskContainerComponent</widget-class>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<mold-uri>mold/task-container.js</mold-uri>
|
||||
<!-- <mold-uri>~./ganttz/taskcontainer.dsp</mold-uri> -->
|
||||
</mold>
|
||||
</component>
|
||||
<!-- <mold-uri>~./ganttz/taskcontainer.dsp</mold-uri> -->
|
||||
</mold>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>tasklist</component-name>
|
||||
<component-class>org.zkoss.ganttz.TaskList</component-class>
|
||||
<component>
|
||||
<component-name>tasklist</component-name>
|
||||
<component-class>org.zkoss.ganttz.TaskList</component-class>
|
||||
<widget-class>ganttz.TaskList</widget-class>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<!-- <mold-uri>~./ganttz/tasklist.dsp</mold-uri> -->
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<!-- <mold-uri>~./ganttz/tasklist.dsp</mold-uri> -->
|
||||
<mold-uri>mold/task-list.js</mold-uri>
|
||||
</mold>
|
||||
</component>
|
||||
</mold>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>dependencylist</component-name>
|
||||
<component-class>org.zkoss.ganttz.DependencyList</component-class>
|
||||
<component>
|
||||
<component-name>dependencylist</component-name>
|
||||
<component-class>org.zkoss.ganttz.DependencyList</component-class>
|
||||
<widget-class>ganttz.DependencyList</widget-class>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<!-- <mold-uri>~./ganttz/dependencylist.dsp</mold-uri> -->
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<!-- <mold-uri>~./ganttz/dependencylist.dsp</mold-uri> -->
|
||||
<mold-uri>mold/dependency-list.js</mold-uri>
|
||||
</mold>
|
||||
</component>
|
||||
</mold>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>dependency</component-name>
|
||||
<component-class>org.zkoss.ganttz.DependencyComponent
|
||||
</component-class>
|
||||
<component>
|
||||
<component-name>dependency</component-name>
|
||||
<component-class>org.zkoss.ganttz.DependencyComponent
|
||||
</component-class>
|
||||
<widget-class>ganttz.DependencyComponent</widget-class>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<mold>
|
||||
<mold-name>default</mold-name>
|
||||
<mold-uri>mold/dependency-component.js</mold-uri>
|
||||
<!-- <mold-uri>~./ganttz/dependency.dsp</mold-uri> -->
|
||||
</mold>
|
||||
</component>
|
||||
<!-- <mold-uri>~./ganttz/dependency.dsp</mold-uri> -->
|
||||
</mold>
|
||||
</component>
|
||||
|
||||
|
||||
<component>
|
||||
<component-name>timetracker</component-name>
|
||||
<component-class>org.zkoss.ganttz.timetracker.TimeTrackerComponent</component-class>
|
||||
<widget-class>ganttz.TimeTracker</widget-class>
|
||||
<component>
|
||||
<component-name>timetracker</component-name>
|
||||
<component-class>org.zkoss.ganttz.timetracker.TimeTrackerComponent</component-class>
|
||||
<widget-class>ganttz.TimeTracker</widget-class>
|
||||
<macro-uri>~./ganttz/zul/timetracker/timetracker.zul</macro-uri>
|
||||
</component>
|
||||
</component>
|
||||
|
||||
<component>
|
||||
<component-name>timeTrackedTable</component-name>
|
||||
<component-class>org.zkoss.ganttz.timetracker.TimeTrackedTable</component-class>
|
||||
<macro-uri>~./ganttz/zul/timetracker/timetrackedtable.zul</macro-uri>
|
||||
</component>
|
||||
<component>
|
||||
<component-name>timeTrackedTable</component-name>
|
||||
<component-class>org.zkoss.ganttz.timetracker.TimeTrackedTable</component-class>
|
||||
<macro-uri>~./ganttz/zul/timetracker/timetrackedtable.zul</macro-uri>
|
||||
</component>
|
||||
|
||||
</language-addon>
|
||||
|
|
|
|||
|
|
@ -125,15 +125,15 @@
|
|||
<profiles>
|
||||
<profile>
|
||||
<!-- LiquiBase liquibase:update -->
|
||||
<id>liquibase-update</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<id>liquibase-update</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-maven-plugin</artifactId>
|
||||
<artifactId>liquibase-maven-plugin</artifactId>
|
||||
<version>2.0-rc7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
|
|
@ -147,21 +147,21 @@
|
|||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<!-- LiquiBase liquibase:updateSQL -->
|
||||
<id>liquibase-updatesql</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<id>liquibase-updatesql</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-maven-plugin</artifactId>
|
||||
<artifactId>liquibase-maven-plugin</artifactId>
|
||||
<version>2.0-rc7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
|
|
@ -175,10 +175,10 @@
|
|||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<build>
|
||||
|
|
|
|||
|
|
@ -529,12 +529,12 @@ public class CriterionType extends IntegrationEntity implements
|
|||
.checkChildrenAssignedToAnyResource(this)));
|
||||
}
|
||||
|
||||
@NotNull(message = "last criterion sequence code not specified")
|
||||
public Integer getLastCriterionSequenceCode() {
|
||||
return lastCriterionSequenceCode;
|
||||
}
|
||||
@NotNull(message = "last criterion sequence code not specified")
|
||||
public Integer getLastCriterionSequenceCode() {
|
||||
return lastCriterionSequenceCode;
|
||||
}
|
||||
|
||||
public void incrementLastCriterionSequenceCode() {
|
||||
public void incrementLastCriterionSequenceCode() {
|
||||
if (this.lastCriterionSequenceCode == null) {
|
||||
this.lastCriterionSequenceCode = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -244,20 +244,20 @@ public class User extends BaseEntity {
|
|||
this.expandCompanyPlanningViewCharts = expandCompanyPlanningViewCharts;
|
||||
}
|
||||
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
public String getFirstName() {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
public String getLastName() {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,12 +57,12 @@ public class WorkReportDAO extends IntegrationEntityDAO<WorkReport>
|
|||
@Autowired
|
||||
private IOrderDAO orderDAO;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<WorkReport> getAllByWorkReportType(WorkReportType workReportType) {
|
||||
final Criteria criteria = getSession().createCriteria(WorkReport.class);
|
||||
return criteria.add(Restrictions.eq("workReportType", workReportType)).list();
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<WorkReport> getAllByWorkReportType(WorkReportType workReportType) {
|
||||
final Criteria criteria = getSession().createCriteria(WorkReport.class);
|
||||
return criteria.add(Restrictions.eq("workReportType", workReportType)).list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<WorkReport> getAll() {
|
||||
|
|
|
|||
|
|
@ -127,16 +127,16 @@
|
|||
class="org.navalplanner.business.orders.entities.CriterionRequirementOrderElementHandler"
|
||||
factory-method="getInstance" />
|
||||
|
||||
<bean id="versionInformation"
|
||||
<bean id="versionInformation"
|
||||
class="org.navalplanner.business.common.VersionInformation"
|
||||
factory-method="getInstance"
|
||||
lazy-init="false">
|
||||
<property name="projectVersion">
|
||||
<value>${project.version}</value>
|
||||
<value>${project.version}</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="configuration"
|
||||
<bean id="configuration"
|
||||
class="org.navalplanner.business.common.Configuration"
|
||||
factory-method="getInstance"
|
||||
lazy-init="false">
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<property name="codeAutogenerated" access="field"
|
||||
column="code_autogenerated" />
|
||||
|
||||
<property name="lastSequenceCode" access="field"
|
||||
<property name="lastSequenceCode" access="field"
|
||||
column="last_sequence_code" />
|
||||
|
||||
<!-- Index created in a database-object section -->
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
<property name="code" access="property" not-null="true" unique="true"/>
|
||||
<property name="name" unique="true"/>
|
||||
<property name="codeAutogenerated" not-null="true" access="field"
|
||||
<property name="codeAutogenerated" not-null="true" access="field"
|
||||
column="code_autogenerated" />
|
||||
<property name="lastHourCostSequenceCode" not-null="true" access="field"
|
||||
column="last_hour_cost_sequence_code" />
|
||||
|
|
|
|||
|
|
@ -13,13 +13,13 @@
|
|||
<version name="version" access="property" type="long" />
|
||||
|
||||
<property name="code" access="property" not-null="true" unique="true"/>
|
||||
<properties name="nameAndType" unique="true">
|
||||
<property name="name" />
|
||||
<!-- Indexed -->
|
||||
<properties name="nameAndType" unique="true">
|
||||
<property name="name" />
|
||||
<!-- Indexed -->
|
||||
<many-to-one name="type" class="LabelType"
|
||||
column="label_type_id"
|
||||
index="idx_label_on_label_type"/>
|
||||
</properties>
|
||||
</properties>
|
||||
|
||||
<set name="orderElements" table="order_element_label" cascade="none" inverse="true">
|
||||
<key column="label_id" not-null="false"/>
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
<property name="codeAutogenerated" not-null="true"
|
||||
column="code_autogenerated" />
|
||||
|
||||
<property name="lastMaterialSequenceCode" access="field" not-null="true"
|
||||
<property name="lastMaterialSequenceCode" access="field" not-null="true"
|
||||
column="last_material_sequence_code" />
|
||||
|
||||
<!-- Indexed the other side -->
|
||||
|
|
@ -97,9 +97,9 @@
|
|||
<version name="version" access="property" type="long" />
|
||||
|
||||
<component name="materialInfo">
|
||||
<property name="units" />
|
||||
<property name="unitPrice" column="unit_price" />
|
||||
<many-to-one name="material" class="Material" column="material_id" />
|
||||
<property name="units" />
|
||||
<property name="unitPrice" column="unit_price" />
|
||||
<many-to-one name="material" class="Material" column="material_id" />
|
||||
</component>
|
||||
|
||||
<property name="estimatedAvailability" column="estimated_availability" />
|
||||
|
|
|
|||
|
|
@ -221,9 +221,9 @@
|
|||
|
||||
<class name="TaskSource" table="task_source">
|
||||
<id name="id" access="property" type="long">
|
||||
<generator class="foreign">
|
||||
<param name="property">task</param>
|
||||
</generator>
|
||||
<generator class="foreign">
|
||||
<param name="property">task</param>
|
||||
</generator>
|
||||
</id>
|
||||
<version name="version" access="property" type="long" />
|
||||
<many-to-one name="schedulingData" class="SchedulingDataForVersion"
|
||||
|
|
|
|||
|
|
@ -52,22 +52,22 @@ public class ResourceAllocationCommand implements IResourceAllocationCommand {
|
|||
public ResourceAllocationCommand() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAction(IContextWithPlannerTask<TaskElement> context,
|
||||
TaskElement taskElement) {
|
||||
editTaskUtilities.reattach(taskElement);
|
||||
@Override
|
||||
public void doAction(IContextWithPlannerTask<TaskElement> context,
|
||||
TaskElement taskElement) {
|
||||
editTaskUtilities.reattach(taskElement);
|
||||
|
||||
if (isApplicableTo(taskElement)) {
|
||||
Task task = (Task) taskElement;
|
||||
if (task.isSubcontracted()) {
|
||||
editTaskController.showEditFormSubcontract(context, task,
|
||||
planningState);
|
||||
} else {
|
||||
editTaskController.showEditFormResourceAllocation(context,
|
||||
task, planningState);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isApplicableTo(taskElement)) {
|
||||
Task task = (Task) taskElement;
|
||||
if (task.isSubcontracted()) {
|
||||
editTaskController.showEditFormSubcontract(context, task,
|
||||
planningState);
|
||||
} else {
|
||||
editTaskController.showEditFormResourceAllocation(context,
|
||||
task, planningState);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class SubcontractCommand implements ISubcontractCommand {
|
|||
|
||||
@Override
|
||||
public String getIcon() {
|
||||
return "/common/img/ico_subcontract.png";
|
||||
return "/common/img/ico_subcontract.png";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ public class CutyPrint {
|
|||
private static int TASK_HEIGHT = 25;
|
||||
private static int PRINT_VERTICAL_PADDING = 50;
|
||||
|
||||
private static int PRINT_VERTICAL_SPACING = 160;
|
||||
private static int PRINT_VERTICAL_SPACING = 160;
|
||||
|
||||
public static void print(Order order) {
|
||||
print("/planner/index.zul", entryPointForShowingOrder(order),
|
||||
|
|
@ -186,10 +186,10 @@ public class CutyPrint {
|
|||
minWidthForTaskNameColumn);
|
||||
captureString += " --min-width=" + plannerWidth;
|
||||
|
||||
int plannerHeight = (expanded ? planner.getAllTasksNumber() : planner
|
||||
.getTaskNumber()) * TASK_HEIGHT + PRINT_VERTICAL_SPACING;
|
||||
int plannerHeight = (expanded ? planner.getAllTasksNumber() : planner
|
||||
.getTaskNumber()) * TASK_HEIGHT + PRINT_VERTICAL_SPACING;
|
||||
|
||||
captureString += " --min-height=" + plannerHeight;
|
||||
captureString += " --min-height=" + plannerHeight;
|
||||
|
||||
// Static width and time delay parameters (FIX)
|
||||
|
||||
|
|
|
|||
|
|
@ -50,12 +50,12 @@ public interface ISettingsModel {
|
|||
|
||||
boolean isExpandCompanyPlanningViewCharts();
|
||||
|
||||
void setLastName(String lastName);
|
||||
void setLastName(String lastName);
|
||||
|
||||
String getLastName();
|
||||
String getLastName();
|
||||
|
||||
void setFirstName(String firstName);
|
||||
void setFirstName(String firstName);
|
||||
|
||||
String getFirstName();
|
||||
String getFirstName();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,20 +126,20 @@ public class SettingsController extends GenericForwardComposer {
|
|||
return settingsModel.isExpandResourceLoadViewCharts();
|
||||
}
|
||||
|
||||
public String getFirstName() {
|
||||
return settingsModel.getFirstName();
|
||||
}
|
||||
public String getFirstName() {
|
||||
return settingsModel.getFirstName();
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
settingsModel.setFirstName(firstName);
|
||||
}
|
||||
public void setFirstName(String firstName) {
|
||||
settingsModel.setFirstName(firstName);
|
||||
}
|
||||
|
||||
public String getLastName() {
|
||||
return settingsModel.getLastName();
|
||||
}
|
||||
public String getLastName() {
|
||||
return settingsModel.getLastName();
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
settingsModel.setLastName(lastName);
|
||||
}
|
||||
public void setLastName(String lastName) {
|
||||
settingsModel.setLastName(lastName);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,28 +145,28 @@ public class SettingsModel implements ISettingsModel {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFirstName() {
|
||||
return user.getFirstName();
|
||||
}
|
||||
@Override
|
||||
public String getFirstName() {
|
||||
return user.getFirstName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFirstName(String firstName) {
|
||||
if (user != null) {
|
||||
user.setFirstName(firstName);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void setFirstName(String firstName) {
|
||||
if (user != null) {
|
||||
user.setFirstName(firstName);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLastName() {
|
||||
return user.getLastName();
|
||||
}
|
||||
@Override
|
||||
public String getLastName() {
|
||||
return user.getLastName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLastName(String lastName) {
|
||||
if (user != null) {
|
||||
user.setLastName(lastName);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void setLastName(String lastName) {
|
||||
if (user != null) {
|
||||
user.setLastName(lastName);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ public abstract class GenericRESTService<E extends IntegrationEntity,
|
|||
* @throws ValidationException if it is not possible to create the entity
|
||||
* because some very important constraint is violated
|
||||
* @throws RecoverableErrorException if a recoverable
|
||||
* error occurs
|
||||
* error occurs
|
||||
*/
|
||||
protected abstract E toEntity(DTO entityDTO)
|
||||
throws ValidationException, RecoverableErrorException;
|
||||
|
|
|
|||
|
|
@ -22,16 +22,16 @@
|
|||
|
||||
<!-- Spring Security -->
|
||||
<listener>
|
||||
<description>ThreadLocal Synchronization Listener</description>
|
||||
<listener-class>org.zkoss.zkplus.util.ThreadLocalListener</listener-class>
|
||||
<description>ThreadLocal Synchronization Listener</description>
|
||||
<listener-class>org.zkoss.zkplus.util.ThreadLocalListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<preference>
|
||||
<name>ThreadLocal</name>
|
||||
<value>
|
||||
org.springframework.security.context.ThreadLocalSecurityContextHolderStrategy=contextHolder
|
||||
</value>
|
||||
</preference>
|
||||
<preference>
|
||||
<name>ThreadLocal</name>
|
||||
<value>
|
||||
org.springframework.security.context.ThreadLocalSecurityContextHolderStrategy=contextHolder
|
||||
</value>
|
||||
</preference>
|
||||
|
||||
|
||||
<system-config>
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
-->
|
||||
|
||||
<zk>
|
||||
<zscript><![CDATA[
|
||||
top = self;
|
||||
]]>
|
||||
</zscript>
|
||||
<zscript><![CDATA[
|
||||
top = self;
|
||||
]]>
|
||||
</zscript>
|
||||
|
||||
<label id="i18nlabel" value="@{top.i18n}" />
|
||||
<label id="i18nlabel" value="@{top.i18n}" />
|
||||
</zk>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
<div>
|
||||
<label class="scheduling-state" value="${top.buttonLabel}" tooltiptext="${top.buttonTextTooltip}" />
|
||||
<button tooltiptext="${i18n:_('Schedule')}" visible="${top.scheduleButtonVisible}" sclass="icono"
|
||||
image="/common/img/ico_planificador1.png" hoverImage="/common/img/ico_planificador.png"
|
||||
image="/common/img/ico_planificador1.png" hoverImage="/common/img/ico_planificador.png"
|
||||
onClick="top.schedule();"/>
|
||||
<button tooltiptext="${i18n:_('Unschedule')}" visible="${top.unscheduleButtonVisible}" sclass="icono"
|
||||
image="/common/img/ico_unschedule1.png" hoverImage="/common/img/ico_unschedule.png"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
<popup id="finderPopup" sclass="finder-popup">
|
||||
<groupbox mold="3d" closable="false" width="400px">
|
||||
<caption id="finderCaption" />
|
||||
<div id="finderPlaceholder" />
|
||||
<div id="finderPlaceholder" />
|
||||
<hbox>
|
||||
<button id="acceptButton" />
|
||||
<button id="cancelButton" />
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
<panel title="${i18n:_('Label list')}"
|
||||
border="normal">
|
||||
<panelchildren>
|
||||
<hbox align="center">
|
||||
<hbox align="center">
|
||||
<label value="${i18n:_('New label')}" />
|
||||
<textbox id="newLabelTextbox" value="" width="200px" onOK="controller.createLabel()" />
|
||||
<button label="${i18n:_('Add')}"
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@
|
|||
|
||||
<separator spacing="10px" orient="horizontal"/>
|
||||
|
||||
<hbox style="display: none" id="URItext">
|
||||
<hbox style="display: none" id="URItext">
|
||||
<label value="${i18n:_('Click on ')}" />
|
||||
<toolbarbutton id="URIlink" class="z-label" zclass="z-label"
|
||||
label="${i18n:_('direct link')}" />
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@
|
|||
|
||||
<separator spacing="10px" orient="horizontal"/>
|
||||
|
||||
<hbox style="display: none" id="URItext">
|
||||
<hbox style="display: none" id="URItext">
|
||||
<label value="${i18n:_('Click on ')}" />
|
||||
<toolbarbutton id="URIlink" class="z-label" zclass="z-label"
|
||||
label="${i18n:_('direct link')}" />
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
id="code" value="@{controller.workReportType.code}" width="300px"
|
||||
constraint = "@{controller.validateWorkReportTypeCode}"/>
|
||||
<checkbox id="generateCode" label="${i18n:_('Generate code')}"
|
||||
visible = "@{controller.editable}"
|
||||
visible = "@{controller.editable}"
|
||||
onCheck="controller.onCheckGenerateCode(event)"
|
||||
checked="@{controller.workReportType.codeAutogenerated}" />
|
||||
<label visible = "@{controller.readOnly}"
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ public class ReportAdvancesServiceTest {
|
|||
public Void execute() {
|
||||
defaultAdvanceTypesBootstrapListener.loadRequiredData();
|
||||
configurationBootstrap.loadRequiredData();
|
||||
scenariosBootstrap.loadRequiredData();
|
||||
scenariosBootstrap.loadRequiredData();
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
16
pom.xml
16
pom.xml
|
|
@ -155,10 +155,10 @@
|
|||
<id>gettext-commons-site</id>
|
||||
<url>http://gettext-commons.googlecode.com/svn/maven-repository</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>thirdparty</id>
|
||||
<url>http://nexus.naval.igalia.com/content/repositories/thirdparty</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>thirdparty</id>
|
||||
<url>http://nexus.naval.igalia.com/content/repositories/thirdparty</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<pluginRepositories>
|
||||
|
|
@ -557,7 +557,7 @@
|
|||
<artifactId>ehcache</artifactId>
|
||||
<version>1.6.2</version>
|
||||
</dependency>
|
||||
<!-- LiquiBase -->
|
||||
<!-- LiquiBase -->
|
||||
<dependency>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-core</artifactId>
|
||||
|
|
@ -784,9 +784,9 @@
|
|||
|
||||
<!-- =========================================================== -->
|
||||
<!-- LiquiBase plugin -->
|
||||
<plugin>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-maven-plugin</artifactId>
|
||||
<plugin>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-maven-plugin</artifactId>
|
||||
<version>2.0-rc7</version>
|
||||
</plugin>
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
<advance-measurements />
|
||||
<criterion-requirements />
|
||||
<children>
|
||||
<order-line name="orderline B1" code="PREFIX-00022-00001" />
|
||||
<order-line name="orderline B1" code="PREFIX-00022-00001" />
|
||||
</children>
|
||||
</order>
|
||||
</order-list>
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
|
||||
|
||||
<!-- the type wr1 has got the following structure
|
||||
Date: heading
|
||||
Resource: heading
|
||||
Order Element: heading
|
||||
Hours Management: Number of assigned hours.-->
|
||||
Date: heading
|
||||
Resource: heading
|
||||
Order Element: heading
|
||||
Hours Management: Number of assigned hours.-->
|
||||
|
||||
<work-report work-order="PREFIX-00001"
|
||||
resource="30303030D" date="2010-03-09"
|
||||
|
|
@ -135,10 +135,10 @@ Hours Management: Number of assigned hours.-->
|
|||
|
||||
|
||||
<!-- the work report type has got the following structure:
|
||||
Date: line
|
||||
Resource: line
|
||||
Order Element: line
|
||||
Hours Management: Number of hours calculated by clock -->
|
||||
Date: line
|
||||
Resource: line
|
||||
Order Element: line
|
||||
Hours Management: Number of hours calculated by clock -->
|
||||
|
||||
<!-- missing finish-hour OK -->
|
||||
<work-report date="2010-03-09"
|
||||
|
|
@ -224,14 +224,14 @@ Hours Management: Number of hours calculated by clock -->
|
|||
|
||||
|
||||
<!-- the work report type (wrt4) has got the following structure :
|
||||
Date: heading
|
||||
Resource: heading
|
||||
Order Element: heading
|
||||
Hours Management: Number of assigned hours and the time.
|
||||
Date: heading
|
||||
Resource: heading
|
||||
Order Element: heading
|
||||
Hours Management: Number of assigned hours and the time.
|
||||
-->
|
||||
|
||||
<!-- the work report date does not match with the work report line date [OK] -->
|
||||
<!-- the work report resource does not match with the work report line resource [OK] -->
|
||||
<!-- the work report resource does not match with the work report line resource [OK] -->
|
||||
<!-- the work report order element does not match with the work report order element [OK] -->
|
||||
<work-report date="2010-03-09"
|
||||
work-order="PREFIX-00001"
|
||||
|
|
@ -244,9 +244,9 @@ Hours Management: Number of assigned hours and the time.
|
|||
start-hour="2010-07-08T01:00:00.000" hour-type="t1"
|
||||
date="2010-03-12" work-order="PREFIX-00022"
|
||||
resource="w18-nif" code="wr15-wrl1">
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
</work-report-line>
|
||||
</work-report-line-list>
|
||||
</work-report>
|
||||
|
|
@ -280,18 +280,18 @@ Hours Management: Number of assigned hours and the time.
|
|||
start-hour="2010-07-08T01:00:00.000" hour-type="t1"
|
||||
date="2010-03-12" work-order="PREFIX-00022"
|
||||
resource="w18-nif" code="wr17-wrl1">
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
</work-report-line>
|
||||
<work-report-line hours="6"
|
||||
finish-hour="2010-07-08T06:00:00.000"
|
||||
start-hour="2010-07-08T01:00:00.000" hour-type="t1"
|
||||
date="2010-03-12" work-order="PREFIX-00022"
|
||||
resource="w18-nif" code="wr17-wrl1">
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
</work-report-line>
|
||||
</work-report-line-list>
|
||||
</work-report>
|
||||
|
|
@ -308,10 +308,10 @@ Hours Management: Number of assigned hours and the time.
|
|||
start-hour="2010-07-08T01:00:00.000" hour-type="t1"
|
||||
date="2010-03-12" work-order="PREFIX-00022"
|
||||
resource="w18-nif" code="wr18-wrl1">
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
<text-field name="etiqueta1" value="value-etiqueta2" />
|
||||
</text-field-list>
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
<text-field name="etiqueta1" value="value-etiqueta2" />
|
||||
</text-field-list>
|
||||
</work-report-line>
|
||||
</work-report-line-list>
|
||||
</work-report>
|
||||
|
|
@ -327,9 +327,9 @@ Hours Management: Number of assigned hours and the time.
|
|||
start-hour="2010-07-08T01:00:00.000" hour-type="t1"
|
||||
date="2010-03-12" work-order="PREFIX-00022"
|
||||
resource="w18-nif" code="wr20-wrl1">
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
</work-report-line>
|
||||
</work-report-line-list>
|
||||
</work-report>
|
||||
|
|
@ -345,9 +345,9 @@ Hours Management: Number of assigned hours and the time.
|
|||
start-hour="2010-07-08T01:00:00.000" hour-type="t1"
|
||||
date="2010-03-12" work-order="PREFIX-00022"
|
||||
resource="w18-nif" code="wr21-wrl1">
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
</work-report-line>
|
||||
</work-report-line-list>
|
||||
</work-report>
|
||||
|
|
@ -359,14 +359,14 @@ Hours Management: Number of assigned hours and the time.
|
|||
resource="30303030D"
|
||||
work-report-type="wrt4"
|
||||
code="wr22">
|
||||
<work-report-line-list>
|
||||
<work-report-line-list>
|
||||
<work-report-line
|
||||
start-hour="2010-07-08T01:00:00.000" hour-type="t1"
|
||||
date="2010-03-12" work-order="PREFIX-00022"
|
||||
resource="w18-nif" code="wr20-wrl1">
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
<text-field-list>
|
||||
<text-field name="etiqueta1" value="value-etiqueta1" />
|
||||
</text-field-list>
|
||||
</work-report-line>
|
||||
</work-report-line-list>
|
||||
</work-report>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue