Commit graph

4609 commits

Author SHA1 Message Date
Óscar González Fernández
9263f1ad21 Introduce static import
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:18:02 +02:00
Susana Montes Pedreira
0557b68d6f [Bug #608] Include direct access to new resources/criterium allocation in Resource Allocations popup
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-03 14:32:08 +02:00
Susana Montes Pedreira
92581897b5 [Bug #608] Create the new component to allocate resources directly.
The bandboxMultipleSearch changes to adapt to the behaviour
of the new component.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-03 14:02:21 +02:00
Susana Montes Pedreira
8e4226204f [Bug #610] The bandboxMultipleSearch component does not allow to select the dotted line.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-03 13:46:01 +02:00
Diego Pino Garcia
a3cded16db Fix bug detect if there are duplicated codes between the order to be
saved and that order already saved in the DB

It's necessary to check if any of the codes in an order that's going
to be saved contain duplicated values comparing also against that very
same order in the DB.

Order codes must be unique. There's a case where it may not be any
duplicated code in an order, neither in other orders, but a unique
constraint violation still may happen.

Imagine the following scenario:

order
   |-- order1(1, 'code1')
   |-- order2(2, 'code2')

The first time _order_ is persisted, everything goes OK. However if the
value of codes are swapped, that is:

order
   |-- order1(1, 'code2')
   |-- order2(2, 'code1')

None code is repeated within the order, however as data is persisted one by
one, when _order1_ is going to be saved into DB, the value of
_order2.code_ is still 'code2', resulting into an unique code constraint
violation.

This is a limitation of the backend database and how unique fields work.
The best thing to do is to check there's no other orderelement with the
same code value in the DB (except for the one that's going to be saved).

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-02 17:56:28 +02:00
Diego Pino Garcia
711ef2be11 [Bug #615] Order elements with code equals to null are detected as duplicated codes
The code of an Order element must be unique. On creating two new Order
elements, being their code null at that time, the process that checks
whether two or more codes are repeated detects there are duplicated
values.  Null values should not be consider when detecting duplicated
codes.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-02 15:57:45 +02:00
Lorenzo Tilve
8a63145e3f Adding onOK listener to resources filtering
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-09-02 13:05:36 +02:00
Lorenzo Tilve
c2feb4e703 Adding default date value and tooltiptext for workreportlines
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-09-02 13:05:35 +02:00
Lorenzo Tilve
a2fcfdcb21 Improvements on workreport line styles
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-09-02 13:04:59 +02:00
Óscar González Fernández
f60363b17c [Bug #613] Fix bug.
Avoid edge case, the EffortDuration can be null

FEA: ItEr60S19TimeUnitDataType
2010-09-02 12:35:30 +02:00
Óscar González Fernández
c93d14a300 Don't let overflow the minutes and seconds
There was a delay and it was confusing

FEA: ItEr60S19TimeUnitDataType
2010-09-02 12:09:21 +02:00
Óscar González Fernández
8ac4453281 Change name of label so it is more clear
FEA: ItEr60S19TimeUnitDataType
2010-09-02 11:45:18 +02:00
Óscar González Fernández
ad4e5c5c09 Set the columns number to two
FEA: ItEr60S19TimeUnitDataType
2010-09-02 11:39:50 +02:00
Diego Pino Garcia
4743521a5b Fix error validation of Order code not being repeated twice was only
being checked for the own children of an Order instead of all its
children

* Some code refactoring (use Set instead of List, reuse constraint
validation implemented in Order)

FEA: ItEr60S18CambiosPantallaArbolPedido
2010-09-01 12:23:36 +02:00
Diego Pino Garcia
0fb67777f9 Move order.code constraint must be unique from entity to model
There was a constraint in Order that checked the code of an order was
unique in the whole system. This validation was done for each Order,
which slowed the process when saving. This validation is now moved to
OrderModel.save. It does the same funcionality but faster since now it's
no needed to retrieve all order elements for each order.

FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-31 12:11:48 +02:00
Diego Pino Garcia
fbf391a507 Optimize and refactor showEditOrder()
FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-30 10:48:58 +02:00
Diego Pino Garcia
c8227d5396 Reduce showEditWindow() execution time
FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-30 10:48:44 +02:00
Diego Pino Garcia
52afad6393 Save without validating for synchronizeTaskWithSchedule()
FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-30 10:48:31 +02:00
Diego Pino Garcia
169f726ef4 Rename reloadTask() to reattachTask() and do a reattachment instead of a save
FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-30 10:48:20 +02:00
Diego Pino Garcia
1a332ffc05 Refactor writeSchedulingDataChanges() and calculateAdvancePercentage()
FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-30 10:48:05 +02:00
Diego Pino Garcia
bf5da0ea4a Avoid reloadBindings twice for tabs of an order after saving it
FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-30 10:47:51 +02:00
Diego Pino Garcia
1e43c1cf6d initEdit(order) was being executed two times on saving an order
* Move code that updates field 'initialStatus' to method updateDisabilitiesOnInterface(), since initialStatus has to be updated always before calling this method

FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-30 10:47:35 +02:00
Susana Montes Pedreira
c0593e2cec [Bug #604] Review movements of milestones with dependencies.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-08-27 13:19:56 +02:00
Lorenzo Tilve
c1364d4ccc Making grid shortable columns case-insensitive
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-08-27 09:30:43 +02:00
Óscar González Fernández
090074194c Change hours input to duration input.
Now an exception day can be created with a precise duration instead of
specifying a number of hours.

FEA: ItEr60S19TimeUnitDataType
2010-08-25 20:36:21 +02:00
Óscar González Fernández
5590dd6ff6 Remove references to hours in CalendarException.
The signature of the factory methods is changed, now they receive
EffortDuration instead of a Integer. CalendarException#getHours method
removed.

FEA: ItEr60S19TimeUnitDataType
2010-08-25 20:35:13 +02:00
Óscar González Fernández
f76e93815a Show duration instead of hours below calendar
FEA: ItEr60S19TimeUnitDataType
2010-08-25 20:26:37 +02:00
Óscar González Fernández
6a7c6d8689 Show durations instead of hours on exceptions table
FEA: ItEr60S19TimeUnitDataType
2010-08-25 20:26:36 +02:00
Óscar González Fernández
d1e55418fe Cleanup tests.
Remove unnecessary catches and format code.

FEA: ItEr60S19TimeUnitDataType
2010-08-25 20:25:38 +02:00
Susana Montes Pedreira
3a4c58b133 [Bug #349] Button to create an order from a template has been removed.
It adds the button to create a an order from a template
of type order template.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-08-24 12:53:53 +02:00
Diego Pino Garcia
7476455dd2 [Bug #603] Load template element tree in Template view
There was a bug after applying optimizations on how the tree is loaded.
Now it's necessary to reload the tree from directly java code. Before it
was done via reloadBindings()

FEA: ItEr60S18CambiosPantallaArbolPedido
2010-08-23 17:56:55 +02:00
Óscar González Fernández
6536f36b8e Remove hours methods on BaseCalendar.
They are replaced by methods accepting and returning EffortDurations.

FEA: ItEr60S19TimeUnitDataType
2010-08-23 17:42:21 +02:00
Óscar González Fernández
56912d7750 Let minutes and seconds values overflow to the next unit.
The spinners are updated with the new values normalized, so entering
60 minutes becomes an hour, and so on.

FEA: ItEr60S19TimeUnitDataType
2010-08-23 16:24:43 +02:00
Óscar González Fernández
4c4cf6dc1b Enter the duration instead of the hours.
The hours field is replaced by a EffortDurationPicker

FEA: ItEr60S19TimeUnitDataType
2010-08-23 16:24:38 +02:00
Óscar González Fernández
4d7c03c8e0 Add component for showing and editing durations
This is the initial implementation of such component with the basic
functionality.

FEA: ItEr60S19TimeUnitDataType
2010-08-23 16:24:06 +02:00
Óscar González Fernández
6d831a5572 Remove hours methods on CalendarData
FEA: ItEr60S19TimeUnitDataType
2010-08-23 16:20:53 +02:00
Óscar González Fernández
0c3222ba12 Do several cleanups.
Removing unused fields, unnecessary catches and accessing static
members through class.
2010-08-23 16:20:53 +02:00
Lorenzo Tilve
3c869a2337 [Bug #592] Adding label tooltiptext and tree icon width fixes.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-08-23 09:31:16 +02:00
Óscar González Fernández
6df2e3b75b Change getHours method to getDuration.
Instead of returning a number of hours return a EffortDuration.

FEA: ItEr60S19TimeUnitDataType
2010-08-20 14:25:24 +02:00
Óscar González Fernández
399a2edcd3 Implement Comparable on EffortDuration
FEA: ItEr60S19TimeUnitDataType
2010-08-20 14:18:47 +02:00
Óscar González Fernández
0228ce0e65 ResourcesPerDay now works with EffortDurations instead of hours
FEA: ItEr60S19TimeUnitDataType
2010-08-20 14:18:47 +02:00
Óscar González Fernández
597989de06 Add method decomposing an EffortDuration into its elements
FEA: ItEr60S19TimeUnitDataType
2010-08-20 14:18:47 +02:00
Óscar González Fernández
c15b228904 Add utility methods so it's easier to create EffortDuration
FEA: ItEr60S19TimeUnitDataType
2010-08-20 14:18:47 +02:00
Susana Montes Pedreira
9008f945a3 Changes the workingProgressPerTask report.
It changes the interface for the selection of orders.
It adds the filtered by labels and criterions to the workingProgressPerTask report.

FEA : ItEr60S15AnA04S11RFAdaptacionFiltradosInformes
2010-08-20 12:36:53 +02:00
Susana Montes Pedreira
11f62e1dcf Changes the TimeLineMaterial report.
It changes the interface for the selection of orders.

FEA : ItEr60S15AnA04S11RFAdaptacionFiltradosInformes
2010-08-20 10:11:58 +02:00
Susana Montes Pedreira
2cd19b4cea Changes the SchedulingProgressPerOrder report.
It changes the interface for the selection of orders.

FEA : ItEr60S15AnA04S11RFAdaptacionFiltradosInformes
2010-08-19 15:14:58 +02:00
Susana Montes Pedreira
828c065c23 ItEr60S15AnA04S11RFAdaptacionFiltradosInformes : Changes the OrderCostPerResource report.
It changes the interface for the selection of orders.
It adds the filtered by labels and criterions to the OrderCostPerResource report.
2010-08-19 13:14:39 +02:00
Lorenzo Tilve
4ca98525db ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #592] Fixed problems with styles. 2010-08-18 18:08:45 +02:00
Manuel Rego Casasnovas
3bdc973c00 ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #592] Initial fix for bug.
It needs some changes in CSS in order to work properly with long order names.
2010-08-18 18:08:44 +02:00
Diego Pino Garcia
b5186d9933 ItEr60S18CambiosPantallaArbolPedido: Activate paging for order element tree 2010-08-18 17:28:16 +02:00