mirror of
https://github.com/fabioformosa/quartz-manager.git
synced 2026-05-14 22:00:30 +09:00
#52 added the job className to the trigger detail view
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
4
quartz-manager-frontend/src/app/model/jobDetail.model.ts
Normal file
4
quartz-manager-frontend/src/app/model/jobDetail.model.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export class JobDetail {
|
||||
jobClassName: string;
|
||||
description: string;
|
||||
}
|
||||
@@ -2,6 +2,7 @@ import {Moment} from 'moment/moment';
|
||||
|
||||
export class SimpleTriggerForm {
|
||||
triggerName: string;
|
||||
jobClass: string;
|
||||
startDate: Moment;
|
||||
endDate: Moment;
|
||||
repeatCount: number;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user