Added Respondent number. Now need to disable it if "Petitioner" is chosen
This commit is contained in:
parent
6a62a05072
commit
a40f08d124
@ -124,6 +124,10 @@
|
|||||||
<mat-option value="Respondent">Respondent</mat-option>
|
<mat-option value="Respondent">Respondent</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
<mat-form-field fxFlex>
|
||||||
|
<mat-label>Number</mat-label>
|
||||||
|
<input matInput placeholder="Number" formControlName="respondentNo" />
|
||||||
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
fxLayout="row"
|
fxLayout="row"
|
||||||
|
@ -75,6 +75,7 @@ export class CaseDetailComponent implements OnInit, AfterViewInit {
|
|||||||
limitationDate: '',
|
limitationDate: '',
|
||||||
filingDate: '',
|
filingDate: '',
|
||||||
appearOnBehalfOf: '',
|
appearOnBehalfOf: '',
|
||||||
|
respondentNo: '',
|
||||||
questionOfLaw: '',
|
questionOfLaw: '',
|
||||||
aorName: '',
|
aorName: '',
|
||||||
opposingCouncilAor: '',
|
opposingCouncilAor: '',
|
||||||
@ -149,7 +150,11 @@ export class CaseDetailComponent implements OnInit, AfterViewInit {
|
|||||||
? moment(this.item.limitationDate, 'DD-MMM-YYYY').toDate()
|
? moment(this.item.limitationDate, 'DD-MMM-YYYY').toDate()
|
||||||
: '',
|
: '',
|
||||||
filingDate: this.item.filingDate ? moment(this.item.filingDate, 'DD-MMM-YYYY').toDate() : '',
|
filingDate: this.item.filingDate ? moment(this.item.filingDate, 'DD-MMM-YYYY').toDate() : '',
|
||||||
appearOnBehalfOf: this.item.appearOnBehalfOf,
|
appearOnBehalfOf: this.item.appearOnBehalfOf === 'Petitioner' ? 'Petitioner' : 'Respondent',
|
||||||
|
respondentNo:
|
||||||
|
this.item.appearOnBehalfOf === 'Petitioner' || this.item.appearOnBehalfOf === 'Respondent'
|
||||||
|
? ''
|
||||||
|
: this.item.appearOnBehalfOf,
|
||||||
questionOfLaw: this.item.questionOfLaw,
|
questionOfLaw: this.item.questionOfLaw,
|
||||||
aorName: this.item.aorName,
|
aorName: this.item.aorName,
|
||||||
opposingCouncilAor: this.item.opposingCouncilAor,
|
opposingCouncilAor: this.item.opposingCouncilAor,
|
||||||
@ -260,7 +265,10 @@ export class CaseDetailComponent implements OnInit, AfterViewInit {
|
|||||||
} else {
|
} else {
|
||||||
this.item.filingDate = moment(formModel.filingDate).format('DD-MMM-YYYY');
|
this.item.filingDate = moment(formModel.filingDate).format('DD-MMM-YYYY');
|
||||||
}
|
}
|
||||||
this.item.appearOnBehalfOf = formModel.appearOnBehalfOf;
|
this.item.appearOnBehalfOf =
|
||||||
|
formModel.appearOnBehalfOf === 'Petitioner'
|
||||||
|
? 'Petitioner'
|
||||||
|
: formModel.respondentNo || 'Respondent';
|
||||||
this.item.questionOfLaw = formModel.questionOfLaw;
|
this.item.questionOfLaw = formModel.questionOfLaw;
|
||||||
this.item.aorName = formModel.aorName;
|
this.item.aorName = formModel.aorName;
|
||||||
this.item.opposingCouncilAor = formModel.opposingCouncilAor;
|
this.item.opposingCouncilAor = formModel.opposingCouncilAor;
|
||||||
@ -361,7 +369,7 @@ export class CaseDetailComponent implements OnInit, AfterViewInit {
|
|||||||
const complianceDate = formValue.complianceDate
|
const complianceDate = formValue.complianceDate
|
||||||
? moment(formValue.complianceDate).format('DD-MMM-YYYY')
|
? moment(formValue.complianceDate).format('DD-MMM-YYYY')
|
||||||
: null;
|
: null;
|
||||||
const complianceDone = formValue.complianceDone;
|
const complianceDone = !!formValue.complianceDone;
|
||||||
const nextHearingDate = formValue.nextHearingDate
|
const nextHearingDate = formValue.nextHearingDate
|
||||||
? moment(formValue.nextHearingDate).format('DD-MMM-YYYY')
|
? moment(formValue.nextHearingDate).format('DD-MMM-YYYY')
|
||||||
: null;
|
: null;
|
||||||
|
Loading…
Reference in New Issue
Block a user