#52 added the job className to the trigger detail view

This commit is contained in:
Fabio Formosa
2022-09-03 16:30:51 +02:00
parent 9638667368
commit 599b6fb0b4
12 changed files with 88 additions and 6 deletions

View File

@@ -14,7 +14,15 @@
matInput placeholder="Repeat Interval [in mills]" name="triggerName"
[(ngModel)]="simpleTriggerForm.triggerName">
</mat-form-field>
</div>
<div>
<mat-form-field [appearance]="enabledTriggerForm ? 'standard': 'none'">
<mat-label>Job Class</mat-label>
<input [readonly]="!enabledTriggerForm"
matInput placeholder="Job Class Name" name="jobClass"
[(ngModel)]="simpleTriggerForm.jobClass">
</mat-form-field>
</div>
<div>

View File

@@ -95,6 +95,7 @@ export class SimpleTriggerConfigComponent implements OnInit {
private _fromTriggerToForm = (simpleTrigger: SimpleTrigger): SimpleTriggerForm => {
const command = new SimpleTriggerForm();
command.triggerName = simpleTrigger.triggerKeyDTO.name;
command.jobClass = simpleTrigger.jobDetailDTO.jobClassName;
command.repeatCount = simpleTrigger.repeatCount;
command.repeatInterval = simpleTrigger.repeatInterval;
command.startDate = moment(simpleTrigger.startTime);

View File

@@ -0,0 +1,4 @@
export class JobDetail {
jobClassName: string;
description: string;
}

View File

@@ -2,6 +2,7 @@ import {Moment} from 'moment/moment';
export class SimpleTriggerForm {
triggerName: string;
jobClass: string;
startDate: Moment;
endDate: Moment;
repeatCount: number;

View File

@@ -1,5 +1,6 @@
import {TriggerKey} from './triggerKey.model';
import {JobKeyModel} from './jobKey.model';
import {JobDetail} from './jobDetail.model';
export class Trigger {
triggerKeyDTO: TriggerKey;
@@ -11,5 +12,6 @@ export class Trigger {
misfireInstruction: number;
nextFireTime: Date;
jobKeyDTO: JobKeyModel;
jobDetailDTO: JobDetail;
mayFireAgain: boolean;
}