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
36
37
38
import { DialogCurrencyRate } from '../dialogs/dialog.currencyrate';
import { Form } from '../../e2elib/lib/src/pageobjects/form.component';
import { ListSOP } from '../../libappsop/listsop';
 
/**
 * Currency rate form.
 */
export class FormCurrencyRate extends Form {
  public listCurrencyRate = new ListCurrencyRate();
 
  public constructor() {
    super('FormCurrencyRates');
  }
}
 
/**
 * Currency rate list in Currency rate form.
 */
class ListCurrencyRate extends ListSOP<DialogCurrencyRate, ListCurrencyRateColumn> {
  public constructor() {
    super('ListCurrencyRate', new DialogCurrencyRate());
 
    // Set primary key column name(s), to display in error message when assert fails
    this.rowPrimaryColumnNames = {Start: ''};
  }
}
 
export interface ListCurrencyRateColumn {
  Start: string;
  Rate?: string;
}
 
const listCurrencyRateContextMenuItem = {
  Create: { ContextMenu: 'listContextMenuCurrencyRate', Name: 'MenuNewCurrencyRate', Label: 'Create' },
  Delete: { ContextMenu: 'listContextMenuCurrencyRate', Name: 'MenuDeleteCurrencyRates', Label: 'Delete' },
};
 
export { listCurrencyRateContextMenuItem as ListCurrencyRateContextMenuItem };