haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { FormSOP } from '../../libappsop/formsop';
import { ListSOP } from '../../libappsop/listsop';
import { DialogTripFeedback } from '../dialogs/dialog.tripfeedback';
 
export class FormTripFeedback extends FormSOP {
  public listTripFeedback = new ListTripFeedback();
 
  public constructor() {
    super('FormFeedbackTrips');
  }
}
 
export class ListTripFeedback extends ListSOP<DialogTripFeedback, ListTripFeedbackColumn> {
  public static readonly title = 'Trip Feedback';
 
  public constructor() {
    super('FormFeedbackTrips.PanelFeedbackTrips', new DialogTripFeedback());
 
    // Set primary key column name(s), to display in error message when assert fails
    this.rowPrimaryColumnNames = { 'Lane Leg': '', Unit: '' };
  }
}
 
export interface ListTripFeedbackColumn {
  'All constraints'?: string;
  'Lane Leg'?: string;
  Unit?: string;
  Arrival?: string;
  Product?: string;
  'Stocking Point'?: string;
  Quantity?: string;
  UoM?: string;
  Description?: string;
}
 
const listTripFeedbackContextMenuItem = {
  Create: { ContextMenu: 'listContextMenuFeedbackTrips', Name: 'MenuCreate', Label: 'Create' },
  Edit: { ContextMenu: 'listContextMenuFeedbackTrips', Name: 'MenuEdit', Label: 'Edit' },
};
 
export { listTripFeedbackContextMenuItem as ListTripFeedbackContextMenuItem };