You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

78 lines
4.5 KiB

<h2 mat-dialog-title>{{ 'routes.wcs.autocommand.save' | translate }}</h2>
<form autocomplete="off" [formGroup]="form">
<div mat-dialog-content>
<mat-form-field >
<mat-label>{{ 'routes.wcs.autocommand.barcode' | translate }}</mat-label>
<input matInput #barcode formControlName="barcode">
</mat-form-field>
<mat-form-field >
<mat-label>{{ 'routes.wcs.autocommand.pallettype' | translate }}</mat-label>
<input matInput #barcode formControlName="pallettype">
</mat-form-field>
<mat-form-field>
<mat-label>{{ 'routes.wcs.autocommand.tasktype' | translate }}</mat-label>
<mat-select formControlName="tasktypelist" required
(selectionChange)="tasktypeSelected(form.controls.tasktypelist)">
<mat-option *ngFor="let i of tasktypelist" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="startdevicehide">
<mat-label>{{ 'routes.wcs.autocommand.startdevice' | translate }}</mat-label>
<mat-select formControlName="startdevice" required
(selectionChange)="startdeviceSelected(form.controls.tasktypelist,form.controls.startdevice)">
<mat-option *ngFor="let i of startdevice" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="startZXYhide">
<mat-label>{{ 'routes.wcs.autocommand.startZ' | translate }}</mat-label>
<mat-select formControlName="startZ" required
(selectionChange)="startZSelected(form.controls.startdevice,form.controls.startZ)">
<mat-option *ngFor="let i of startZ" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="startZXYhide">
<mat-label>{{ 'routes.wcs.autocommand.startX' | translate }}</mat-label>
<mat-select formControlName="startX" required
(selectionChange)="startXSelected(form.controls.startdevice,form.controls.startZ,form.controls.startX)">
<mat-option *ngFor="let i of startX" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="startZXYhide">
<mat-label>{{ 'routes.wcs.autocommand.startY' | translate }}</mat-label>
<mat-select formControlName="startY" required>
<mat-option *ngFor="let i of startY" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="enddevicehide">
<mat-label>{{ 'routes.wcs.autocommand.enddevice' | translate }}</mat-label>
<mat-select formControlName="enddevice" required
(selectionChange)="enddeviceSelected(form.controls.tasktypelist,form.controls.enddevice)">
<mat-option *ngFor="let i of enddevice" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="endZXYhide">
<mat-label>{{ 'routes.wcs.autocommand.endZ' | translate }}</mat-label>
<mat-select formControlName="endZ" required
(selectionChange)="endZSelected(form.controls.enddevice,form.controls.endZ)">
<mat-option *ngFor="let i of endZ" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="endZXYhide">
<mat-label>{{ 'routes.wcs.autocommand.endX' | translate }}</mat-label>
<mat-select formControlName="endX" required
(selectionChange)="endXSelected(form.controls.enddevice,form.controls.endZ,form.controls.endX)">
<mat-option *ngFor="let i of endX" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="endZXYhide">
<mat-label>{{ 'routes.wcs.autocommand.endY' | translate }}</mat-label>
<mat-select formControlName="endY" required>
<mat-option *ngFor="let i of endY" [value]="i.id">{{i.name}}</mat-option>
</mat-select>
</mat-form-field>
</div>
<div mat-dialog-actions align="end">
<button mat-button color="primary" (click)="save()">{{ 'shared.dialog.ok' | translate | uppercase }}</button>
<button mat-button mat-dialog-close>{{ 'shared.dialog.cancel' | translate | uppercase }}</button>
</div>
</form>