<table class="table mb-0 "> <table class="table mb-0 "> <tbody> <tr *ngFor="let listSubMenu of listType.submenu"> <td class="first-col-tb-width mb-0 py-3"> {{listSubMenu.submenuNameL}} </td> <td class="col-tb-width text-left mb-0 py-3" *ngFor="let item of lstchkprivilege"> <div id="chekcboxtrue"> <mat-checkbox *ngIf="item.Pvl=='doEditQty' && listSubMenu.doEditQty==1" [checked]="true" [(ngModel)]="listSubMenu.doEditQty"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doEnabled' && listSubMenu.doEnabled==1" [checked]="true" [(ngModel)]="listSubMenu.doEnabled"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doApproval' && listSubMenu.doApproval==1" [checked]="true" [(ngModel)]="listSubMenu.doApproval"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doEditable' && listSubMenu.doEditable==1" [checked]="true" [(ngModel)]="listSubMenu.doEditable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doViewable' && listSubMenu.doViewable==1" [checked]="true" [(ngModel)]="listSubMenu.doViewable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doCreatable' && listSubMenu.doCreatable==1" [checked]="true" [(ngModel)]="listSubMenu.doCreatable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doDeletable' && listSubMenu.doDeletable==1" [checked]="true" [(ngModel)]="listSubMenu.doDeletable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doEditPrice' && listSubMenu.doEditPrice==1" [checked]="true" [(ngModel)]="listSubMenu.doEditPrice"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doPrintable' && listSubMenu.doPrintable==1" [checked]="true" [(ngModel)]="listSubMenu.doPrintable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doEditDiscount' && listSubMenu.doEditDiscount==1" [checked]="true" [(ngModel)]="listSubMenu.doEditDiscount"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='confirmPassword' && listSubMenu.confirmPassword==1" [checked]="true" [(ngModel)]="listSubMenu.confirmPassword"></mat-checkbox> </div> <div id="chekcboxFalse"> <mat-checkbox *ngIf="item.Pvl=='doEditQty' && listSubMenu.doEditQty==0" [checked]="false" [(ngModel)]="listSubMenu.doEditQty"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doEnabled' && listSubMenu.doEnabled==0" [checked]="false" [(ngModel)]="listSubMenu.doEnabled"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doApproval' && listSubMenu.doApproval==0" [checked]="false" [(ngModel)]="listSubMenu.doApproval"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doEditable' && listSubMenu.doEditable==0" [checked]="false" [(ngModel)]="listSubMenu.doEditable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doViewable' && listSubMenu.doViewable==0" [checked]="false" [(ngModel)]="listSubMenu.doViewable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doCreatable' && listSubMenu.doCreatable==0" [checked]="false" [(ngModel)]="listSubMenu.doCreatable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doDeletable' && listSubMenu.doDeletable==0" [checked]="false" [(ngModel)]="listSubMenu.doDeletable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doEditPrice' && listSubMenu.doEditPrice==0" [checked]="false" [(ngModel)]="listSubMenu.doEditPrice"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doPrintable' && listSubMenu.doPrintable==0" [checked]="false" [(ngModel)]="listSubMenu.doPrintable"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='doEditDiscount' && listSubMenu.doEditDiscount==0" [checked]="false" [(ngModel)]="listSubMenu.doEditDiscount"></mat-checkbox> <mat-checkbox *ngIf="item.Pvl=='confirmPassword' && listSubMenu.confirmPassword==0" [checked]="false" [(ngModel)]="listSubMenu.confirmPassword"></mat-checkbox> </div> </td> </tr> </tbody> </table>
$('mat-checkbox').each( (i,o)=>{ if($(o).prop('checked')){ // จะทำอะไรก็ว่าไป } });
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง