Commit graph

936 commits

Author SHA1 Message Date
Óscar González Fernández
737994f7db ItEr42S13ImplantacionAplicacionItEr41S16: Fixing problem when saving an order.
Bypassing checking unique constraint when the hours group has null code in order to avoid exception
2010-01-09 19:56:36 +01:00
Fernando Bellas Permuy
d9f0a0ee51 ItEr42S12CUImportacionRecursosProductivosItEr41S15: Support for importing resources with cost assignments.
Support for importing resources with cost assignments has been implemented. Many test cases have been implemented for checking all constraint violations in cost assigments (special care has been taken to check time interval overlappings). toString method has been implemented in constraint violation related DTOs to facilitate debuging in testing.
2010-01-09 18:57:56 +01:00
Lorenzo Tilve
217f702d6f ItEr41S14CUInformeTraballadorCustesHoraItEr40S19: Order costs per resource report 2010-01-09 18:17:34 +01:00
Óscar González Fernández
bc58748473 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Adding Comparable interface to MaterialAssignmentTemplate 2010-01-08 12:44:06 +01:00
Óscar González Fernández
581150c167 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Implementing controller and component for material assignment for templates 2010-01-08 12:44:06 +01:00
Óscar González Fernández
383c456941 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Creating model for assigned materials to order element template 2010-01-08 12:44:05 +01:00
Óscar González Fernández
8ccf8ed267 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Moving totalPrice to MaterialInfo so it can be reused. 2010-01-08 12:44:02 +01:00
Óscar González Fernández
326847e9b4 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Not letting update total Price since it was causing a division by zero when the number of units is zero.
The field now appears disabled.
2010-01-08 12:44:01 +01:00
Manuel Rego Casasnovas
358311690a ItEr42S05ValidacionEProbasFuncionaisItEr41S05: Removed unneeded file. 2010-01-08 10:25:50 +01:00
Lorenzo Tilve
2db546c326 ItEr42S15SoporteImpresionMultiplesPaxinasItEr41S18: Show generic criterions in resource allocations next to the schedulled tasks 2010-01-07 19:01:23 +01:00
Javier Moran Rua
e49fa7038a ItEr42S05ValidacionEProbasFuncionaisItEr41S05: [Bug #226] Fixed "Build fails due to a OrderElementTemplate mapping problem". 2010-01-07 16:57:12 +01:00
Fernando Bellas Permuy
3f67d4aad5 ItEr42S12CUImportacionRecursosProductivosItEr41S15: Calendar-specification support for resources being imported.
Resources to be imported can now specify a calendar name. Each resource will have a derived calendar of the specified one. Furthermore, test cases have been implemented for the most common cases (calendar not specified -> use default calendar, calendar specified, and non-existent calendar).
2010-01-07 16:47:28 +01:00
Fernando Bellas Permuy
1a12344ce5 ItEr42S12CUImportacionRecursosProductivosItEr41S15: Detection of resoures with hthe same "logical" name among the resources being imported.
Resources with the same "logical" name (code for machines; first name, surnamne, and nif for workers) among the list of resources *being imported* are detected. This detection must be implemented at the service-level (at the entity-level, @AssertTrue annotations in Machine and Worker detect importation of resources with the same logical name as other resources already existing in the *database*). A test case has been added (furthermore, ResourceServiceTest has been refactorized a little bit).
2010-01-07 16:45:05 +01:00
Jacobo Aragunde Pérez
78b005d3f9 ItEr41S25CUAltaSubcontrataItEr30S08: Implemented the relation with User 2010-01-07 12:47:38 +01:00
Jacobo Aragunde Pérez
64ec409550 ItEr41S25CUAltaSubcontrataItEr30S08: Unique nif validation for entity ExternalCompany
To implement that validation, some new DAO methods were necessary.
A new test unit has been added too.
2010-01-07 12:40:20 +01:00
Jacobo Aragunde Pérez
90426a687c ItEr41S25CUAltaSubcontrataItEr30S08: Unique name validation for entity ExternalCompany
To implement that validation, some new DAO methos were necessary.
New test units have been added too.
2010-01-07 12:40:02 +01:00
Jacobo Aragunde Pérez
311b943c10 ItEr41S25CUAltaSubcontrataItEr30S08: Entity and DAO for ExternalCompany.
A basic unit test has been written too.
The attributes name and cif are compulsory and unique. The unique constraint
has been set in the Hibernate mapping but not yet in the entity. The relation
with User is not implemented either.
2010-01-07 12:28:32 +01:00
Óscar González Fernández
c62a1152ea ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: MaterialAssignments are converted into MaterialAssignmentTemplates when converting an OrderElement into an OrderElementTemplate 2010-01-06 19:15:32 +01:00
Óscar González Fernández
3b7d799e8e ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Creating class MaterialAssignmentTemplate and mapping its relationships. 2010-01-06 18:58:58 +01:00
Óscar González Fernández
e2b6e542b4 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Extracting MaterialInfo component from Materials class 2010-01-06 18:55:49 +01:00
Óscar González Fernández
08d0d6ec24 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Using loadOrderAvoidingProxyFor in order to avoid proxy problem.
The order was being loaded as a proxy of class OrderLineGroup, loadOrderAvoidingProxyFor avoids this problem.
2010-01-05 17:54:56 +01:00
Óscar González Fernández
dbde962415 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Adding runOnAnotherTransaction to execute code in another transaction 2010-01-05 17:49:51 +01:00
Susana Montes Pedreira
5811527f45 ItEr42S10CUVinculacionFormularioCalidadePlanificacionItEr41S10 : add a more optimal filter, sorts the assigned task quality forms list and change the user messages by removing the null word. 2010-01-05 12:39:38 +01:00
Óscar González Fernández
4bfd5546d5 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: ITreeNode and ITreeParentNode implemented by OrderElementTemplate and subclasses 2010-01-04 23:59:16 +01:00
Óscar González Fernández
f511d130b3 ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Fixing problem when adding elements to leaf.
The previous leaf must be added to the newly created containter after the replace is done. When doing the replace, the scheduling state was being detached of the newly created container.
2010-01-04 23:59:16 +01:00
Óscar González Fernández
b9ea81ca6f ItEr42S17CUGravacionModelosUnidadesTraballoItEr41S20: Extracting ITreeNode and ITreeParentNode interfaces for order elements. 2010-01-04 23:59:16 +01:00
Óscar González Fernández
013425c9ca ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Removing IOrderLineGroupManipulator since Order extends OrderLineGroup. 2010-01-03 23:24:21 +01:00
Óscar González Fernández
4d0c4ebfb1 ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Creating interface ITreeNode and default implementation.
OrderLineGroupManipulator implements this interface
2010-01-03 23:11:02 +01:00
Óscar González Fernández
028c26afb9 ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Only showing root templates 2010-01-03 23:10:39 +01:00
Óscar González Fernández
a307b549e1 ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: When saving all templates are marked as not transient to avoid problem when hitting save&continue several times 2010-01-03 23:10:03 +01:00
Óscar González Fernández
679d5a8c49 ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Adding edition form with save and cancel buttons 2010-01-03 23:09:51 +01:00
Óscar González Fernández
d30bad1994 ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Creating template from order element 2010-01-03 23:09:45 +01:00
Óscar González Fernández
f21c59eefa ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Changing return type of getParent DAO method 2010-01-03 23:09:39 +01:00
Óscar González Fernández
755cde54aa ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Creating initial listing of available templates 2010-01-03 23:09:27 +01:00
Óscar González Fernández
8863cdd369 ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Creating initial template classes and associated mappings. 2010-01-03 23:09:19 +01:00
Óscar González Fernández
ae64046c5f ItEr41S20CUGravacionModelosUnidadesTraballoItEr40S25: Extracting InfoComponent from OrderElement.
This allows this set of fields to be reused at another entities.
2010-01-03 23:09:10 +01:00
Manuel Rego Casasnovas
2397db459b ItEr41S23CUImportarTraballoRealizadoPorSubcontrata: Fixed tests to fulfill the previous constraint. 2010-01-03 21:26:14 +01:00
Manuel Rego Casasnovas
33d243b33d ItEr41S23CUImportarTraballoRealizadoPorSubcontrata: Adding unique code constraint on HoursGroup entity. 2010-01-03 21:26:10 +01:00
Manuel Rego Casasnovas
85da496e9d ItEr41S22CUIntroducionPartesTraballoManualmenteItEr38S14: Adding getAll() method to OrderElementDAO. 2010-01-03 19:09:31 +01:00
Fernando Bellas Permuy
77a236a5e8 ItEr41S15CUImportacionRecursosProductivosItEr40S20: Constraint added to verify criterion satisfactions are of a CriterionType compatible with the resource
--
Fernando Bellas Permuy

Associate Professor (Titular) at University of A Coruña
Department of Information and Communications Technologies
Facultad de Informática - Campus de Elviña, S/N
15071 - A Coruña - Spain
http://www.tic.udc.es/~fbellas - fbellas@udc.es
Tel: +34 981 167 000 (ext: 1353) - Fax: +34 981 167 160

>From c9af4778e28e370fb2a8dc2c63a4d75e41a07d7f Mon Sep 17 00:00:00 2001
From: Fernando Bellas Permuy <fbellas@udc.es>
Date: Thu, 31 Dec 2009 13:14:28 +0100
Subject: [PATCH 6/7] ItEr41S15CUImportacionRecursosProductivosItEr40S20: Constraint added to verify criterion satisfactions are of a CriterionType compatible with the resource.

A test case has also been added.
2010-01-03 13:19:36 +01:00
Fernando Bellas Permuy
0dad7ade89 ItEr41S15CUImportacionRecursosProductivosItEr40S20: Improvements to Worker::checkConstraintUniqueFirstName, test cases added to check resources cannot be imported if they have the same "logic" identifier (code for machines and first name, surname and nif for workers) as other existing resources.
Furthermore, ResourceServiceTest has been refactored to save code now and in future.
2010-01-03 13:19:30 +01:00
Fernando Bellas Permuy
bedc38de23 ItEr41S15CUImportacionRecursosProductivosItEr40S20: Naval Planner Business' StringUtils replaced by Apache Commons Lang's StringUtils.
Naval Planner Business' StringUtils replaced by Apache Commons Lang's StringUtils.
2010-01-03 13:19:28 +01:00
Fernando Bellas Permuy
523aa46263 ItEr41S15CUImportacionRecursosProductivosItEr40S20: Resource validations propagaged to CriterionSatisfactions.
@Valid has been specified in Resource::getCriterionSatisfactions. A test case has been added to verify a validation constraint is generated when a resource containing a criterion satisfaction without start date is being imported with the REST service (@Valid annotation is necessary).
2010-01-03 13:19:25 +01:00
Fernando Bellas Permuy
746ce17bf1 ItEr41S15CUImportacionRecursosProductivosItEr40S20: String fields when importing resources are trimmed.
String fields when importing resources are trimmed.
2010-01-03 13:19:21 +01:00
Fernando Bellas Permuy
ec0da2601e ItEr41S15CUImportacionRecursosProductivosItEr40S20: Bug fixed when firstName, surname or nif are null in a worker to be imported with the REST service.
Bug fixed when firstName, surname or nif are null in a worker to be imported with the REST service. Now, Worker::checkConstraintUniqueFirstName checks if such fields are null.
2010-01-03 13:19:19 +01:00
Manuel Rego Casasnovas
e4bb249550 ItEr41S23CUImportarTraballoRealizadoPorSubcontrata: Import/update criterions information at order element service. 2010-01-02 19:43:13 +01:00
Manuel Rego Casasnovas
fd3268838b ItEr41S23CUImportarTraballoRealizadoPorSubcontrata: Added constraints to entities related with advances. 2010-01-02 19:01:18 +01:00
Manuel Rego Casasnovas
b83936d2ff ItEr41S23CUImportarTraballoRealizadoPorSubcontrata: Added information about advance on order elements importation. 2010-01-02 19:01:16 +01:00
Manuel Rego Casasnovas
d5584dda99 ItEr41S23CUImportarTraballoRealizadoPorSubcontrata: Prevent null pointer exception. 2010-01-02 19:01:08 +01:00
Manuel Rego Casasnovas
d352c7c140 ItEr41S23CUImportarTraballoRealizadoPorSubcontrata: Added new advance type subcontractor. 2010-01-02 19:01:05 +01:00