Commit 1a6c9e50 by Your Name

Update Validator Contact

parent 3993eda7
...@@ -378,8 +378,7 @@ ...@@ -378,8 +378,7 @@
<div class="row"> <div class="row">
<div class="col-sm-12 mb-1"> <div class="col-sm-12 mb-1">
<label for="exampleFormControlSelect1">วันที่เริ่มต้น</label> <label for="exampleFormControlSelect1">วันที่เริ่มต้น</label>
<input type="date" class="form-control" [(ngModel)]="sDate" <input type="date" class="form-control" [(ngModel)]="sDate" formControlName="sDate" />
(ngModelChange)="rDate(sDate,'sdate')" formControlName="sDate" />
<div style="color: red;" *ngIf="myFormEquir.controls.sDate.status=='INVALID'"> <div style="color: red;" *ngIf="myFormEquir.controls.sDate.status=='INVALID'">
กรุณากรอกวันที่เริ่มต้นการเบิก</div> กรุณากรอกวันที่เริ่มต้นการเบิก</div>
</div> </div>
...@@ -422,7 +421,8 @@ ...@@ -422,7 +421,8 @@
<div class="col-12 mb-1"> <div class="col-12 mb-1">
<div class=" form-check"> <div class=" form-check">
<label class=" form-check-label"> <label class=" form-check-label">
<input class=" form-check" type="checkbox" [(ngModel)]="modelItemDetail.returnItem" formControlName="returnItem" /> <input class=" form-check" type="checkbox" [(ngModel)]="modelItemDetail.returnItem"
formControlName="returnItem" />
<span class=" form-check-sign"> <span class=" form-check-sign">
<span class="check">คืนอุปกรณ์ที่เบิก</span> <span class="check">คืนอุปกรณ์ที่เบิก</span>
</span> </span>
...@@ -433,8 +433,7 @@ ...@@ -433,8 +433,7 @@
<div class="row" *ngIf="modelItemDetail.returnItem"> <div class="row" *ngIf="modelItemDetail.returnItem">
<div class="col-sm-12 mb-1"> <div class="col-sm-12 mb-1">
<label for="exampleFormControlSelect1">วันที่สิ้นสุด</label> <label for="exampleFormControlSelect1">วันที่สิ้นสุด</label>
<input type="date" class="form-control" [(ngModel)]="eDate" <input type="date" class="form-control" [(ngModel)]="eDate" formControlName="eDate" />
(ngModelChange)="rDate(eDate,'edate')" formControlName="eDate" />
<div style="color: red;" *ngIf="myFormEquir.controls.eDate.status=='INVALID'"> <div style="color: red;" *ngIf="myFormEquir.controls.eDate.status=='INVALID'">
กรุณากรอกวันที่สิ้นสุดการเบิก.</div> กรุณากรอกวันที่สิ้นสุดการเบิก.</div>
</div> </div>
......
...@@ -142,14 +142,14 @@ ...@@ -142,14 +142,14 @@
<input input class=" form-control" placeholder="" type="text" formControlName="ctName" <input input class=" form-control" placeholder="" type="text" formControlName="ctName"
[(ngModel)]="modelContact.ctName" /> [(ngModel)]="modelContact.ctName" />
<div style="color: red;" *ngIf="myFormContact.controls.ctName.status=='INVALID'"> <div style="color: red;" *ngIf="myFormContact.controls.ctName.status=='INVALID'">
กรุณากรอกชื่อผู้จอง.</div> กรุณากรอกชื่อผู้แจ้ง.</div>
</div> </div>
<div class="col-6 md-1"> <div class="col-6 md-1">
<label for="typeahead-focus">หัวข้อการแจ้ง Bug:</label> <label for="typeahead-focus">หัวข้อการแจ้ง Bug:</label>
<input input class=" form-control" placeholder="" type="text" formControlName="ctHead" <input input class=" form-control" placeholder="" type="text" formControlName="ctHead"
[(ngModel)]="modelContact.ctHead" /> [(ngModel)]="modelContact.ctHead" />
<div style="color: red;" *ngIf="myFormContact.controls.ctHead.status=='INVALID'"> <div style="color: red;" *ngIf="myFormContact.controls.ctHead.status=='INVALID'">
กรุณากรอกชื่อผู้จอง.</div> กรุณากรอกหัวข้อการแจ้ง.</div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
...@@ -161,14 +161,14 @@ ...@@ -161,14 +161,14 @@
(click)="click$.next($any($event).target.value)" #instance="ngbTypeahead" (click)="click$.next($any($event).target.value)" #instance="ngbTypeahead"
formControlName="ctTab" /> formControlName="ctTab" />
<div style="color: red;" *ngIf="myFormContact.controls.ctTab.status=='INVALID'"> <div style="color: red;" *ngIf="myFormContact.controls.ctTab.status=='INVALID'">
กรุณากรอกชื่อผู้จอง.</div> กรุณากรอกหน้าต่างที่ต้องการแจ้ง.</div>
</div> </div>
<div class="col-6 mb-1"> <div class="col-6 mb-1">
<label for="exampleFormControlSelect1">วันที่เริ่มต้น</label> <label for="exampleFormControlSelect1">วันที่เริ่มต้น</label>
<input type="date" class="form-control" value="" formControlName="sDate" <input type="date" class="form-control" value="" formControlName="sDate"
[(ngModel)]="modelContact.sDate" > [(ngModel)]="modelContact.sDate" >
<div style="color: red;" *ngIf="myFormContact.controls.sDate.status=='INVALID'"> <div style="color: red;" *ngIf="myFormContact.controls.sDate.status=='INVALID'">
กรุณากรอกชื่อผู้จอง.</div> กรุณากรอกวันที่แจ้ง.</div>
</div> </div>
</div> </div>
<div class=" row"> <div class=" row">
......
...@@ -151,8 +151,8 @@ export class EquipmentComponent implements OnInit { ...@@ -151,8 +151,8 @@ export class EquipmentComponent implements OnInit {
rType : new FormControl(this.modelRoomDetail.room.rType,[Validators.required]), rType : new FormControl(this.modelRoomDetail.room.rType,[Validators.required]),
sDate : new FormControl(this.modelRoomDetail.sDate,[Validators.required]), sDate : new FormControl(this.modelRoomDetail.sDate,[Validators.required]),
eDate : new FormControl(this.modelRoomDetail.eDate,[Validators.required]), eDate : new FormControl(this.modelRoomDetail.eDate,[Validators.required]),
sTime : new FormControl(this.modelRoomDetail.sTime,[Validators.required]), sTime : new FormControl(''),
eTime : new FormControl(this.modelRoomDetail.eTime,[Validators.required]), eTime : new FormControl(''),
remark : new FormControl(''), remark : new FormControl(''),
allDay: new FormControl('') allDay: new FormControl('')
}); });
......
...@@ -18,8 +18,8 @@ export class ItemDetailService { ...@@ -18,8 +18,8 @@ export class ItemDetailService {
eqPic: "assets/img/mou.jpg" eqPic: "assets/img/mou.jpg"
}, },
userName: 'เกม', userName: 'เกม',
sDate: '2021/12/09', sDate: '2021-12-09',
eDate: '2021/12/15', eDate: '2021-12-15',
sTime: '22:30', sTime: '22:30',
eTime: '22:30', eTime: '22:30',
eStatus: 0, eStatus: 0,
...@@ -40,8 +40,8 @@ export class ItemDetailService { ...@@ -40,8 +40,8 @@ export class ItemDetailService {
eqPic: "assets/img/notebook.jpg" eqPic: "assets/img/notebook.jpg"
}, },
userName: 'แป๊ะ', userName: 'แป๊ะ',
sDate: '2021/12/09', sDate: '2021-12-09',
eDate: '2021/12/13', eDate: '2021-12-13',
sTime: '22:30', sTime: '22:30',
eTime: '22:30', eTime: '22:30',
eStatus: 1, eStatus: 1,
......
...@@ -20,8 +20,8 @@ export class RoomDetailService { ...@@ -20,8 +20,8 @@ export class RoomDetailService {
rDesc: "จำนวนคน 25 คน", rDesc: "จำนวนคน 25 คน",
}, },
userName: 'เกม', userName: 'เกม',
sDate: '2021/12/15', sDate: '2021-12-15',
eDate: '2021/12/15', eDate: '2021-12-15',
sTime: '22:30', sTime: '22:30',
eTime: '22:30', eTime: '22:30',
rStatus: 0, rStatus: 0,
...@@ -41,8 +41,8 @@ export class RoomDetailService { ...@@ -41,8 +41,8 @@ export class RoomDetailService {
rDesc: "จำนวนคน 50 คน", rDesc: "จำนวนคน 50 คน",
}, },
userName: 'แป๊ะ', userName: 'แป๊ะ',
sDate: '2021/12/15', sDate: '2021-12-15',
eDate: '2021/12/15', eDate: '2021-12-15',
sTime: '22:30', sTime: '22:30',
eTime: '22:30', eTime: '22:30',
rStatus: 1, rStatus: 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment