ItEr51S04ValidacionEProbasFuncionaisItEr50S04 : [Bug #392] Fixing Bug.
Checks if the assigned order element to a work report line is not null.
This commit is contained in:
parent
2ba47db48c
commit
d039edf5ed
1 changed files with 6 additions and 6 deletions
|
|
@ -343,11 +343,11 @@ public class WorkReportCRUDController extends GenericForwardComposer implements
|
|||
return false;
|
||||
}
|
||||
} else if (workReportLine.getOrderElement() == null) {
|
||||
Textbox txtOrder = getTextboxOrder(row);
|
||||
if (txtOrder != null) {
|
||||
BandboxSearch bandboxOrder = getTextboxOrder(row);
|
||||
if (bandboxOrder != null) {
|
||||
String message = _("The order element code cannot be null");
|
||||
txtOrder.setValue("");
|
||||
showInvalidMessage(txtOrder, message);
|
||||
bandboxOrder.clear();
|
||||
showInvalidMessage(bandboxOrder, message);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -520,7 +520,7 @@ public class WorkReportCRUDController extends GenericForwardComposer implements
|
|||
* @param row
|
||||
* @return
|
||||
*/
|
||||
private Textbox getTextboxOrder(Row row) {
|
||||
private BandboxSearch getTextboxOrder(Row row) {
|
||||
int position = 0;
|
||||
if (!getWorkReportType().getDateIsSharedByLines()) {
|
||||
position++;
|
||||
|
|
@ -529,7 +529,7 @@ public class WorkReportCRUDController extends GenericForwardComposer implements
|
|||
position++;
|
||||
}
|
||||
try {
|
||||
return (Textbox) row.getChildren().get(position);
|
||||
return (BandboxSearch) row.getChildren().get(position);
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue