set the fields of the subcontraction pop-up to read-only mode
when a subcontracted task has been sent. FEA: ItEr75S32AnA15S04UpdateDeliveringDateInSubcontracting
This commit is contained in:
parent
86a6341911
commit
deeeac579f
1 changed files with 8 additions and 6 deletions
|
|
@ -246,14 +246,16 @@ public class SubcontractController extends GenericForwardComposer {
|
|||
}
|
||||
|
||||
public boolean isSent(){
|
||||
return !isNotSent();
|
||||
}
|
||||
|
||||
public boolean isNotSent() {
|
||||
if (this.getSubcontractedTaskData() != null && this.getSubcontractedTaskData().getState() != null) {
|
||||
return this.getSubcontractedTaskData().getState()
|
||||
.equals(SubcontractState.SUCCESS_SENT);
|
||||
return ((this.getSubcontractedTaskData().getState()
|
||||
.equals(SubcontractState.PENDING_INITIAL_SEND)) || (this
|
||||
.getSubcontractedTaskData().getState()
|
||||
.equals(SubcontractState.FAILED_SENT)));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isNotSent(){
|
||||
return !isSent();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue