yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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
import { Form } from '../../e2elib/lib/src/pageobjects/form.component';
import { DialogAssumption } from '../dialogs/dialog.assumption';
import { ListSOP } from '../../libappsop/listsop';
 
export interface ListAssumptionsColumn {
  Title?: string;
  Description?: string;
  Type?: string;
  Category?: string;
  Importance?: string;
}
 
export class FormAssumption extends Form {
  public listAssumption = new ListAssumptions();
 
  public constructor() {
    super('FormAssumptions');
  }
}
 
class ListAssumptions extends ListSOP<DialogAssumption, ListAssumptionsColumn> {
  public constructor() {
    super('ListAssumptions', new DialogAssumption());
 
    // Set primary key column name(s), to display in error message when assert fails
    this.rowPrimaryColumnNames = {Title: ''};
  }
}
 
const listAssumptionsContextMenuItem = {
  Create: { ContextMenu: 'listContextMenu339', Name: 'MenuCreate', Label: 'Create' },
  Edit: { ContextMenu: 'listContextMenu339', Name: 'MenuEdit', Label: 'Edit' },
};
 
export { listAssumptionsContextMenuItem as ListAssumptionsContextMenuItem };