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
/**
 * @file          Campaign Types Form
 * @author        Zan Sen (zansen.tai@3ds.com)
 */
import { Form } from '../../e2elib/lib/src/pageobjects/form.component';
import { ListSOP } from '../../libappsop/listsop';
import { ListCampaignTypeColumn } from './form.campaigntypes';
import { DialogCampaignType } from '../dialogs/dialog.campaigntype';
 
export class FormCampaignTypesReadOnly extends Form {
  // Read only form has campaign types only
  public listCampaignType = new ListCampaignTypeReadOnly();
  public constructor() {
    super('FormCampaignTypesOnly');
  }
}
 
// No dialog associated, this is a read-only form
export class ListCampaignTypeReadOnly extends ListSOP<DialogCampaignType, ListCampaignTypeColumn> {
  public readonly name = 'Campaign Types';
 
  public constructor() {
    super('ListCampaignType', new DialogCampaignType());
 
    // Set primary key column name(s), to display in error message when assert fails
    this.rowPrimaryColumnNames = { Name: '' };
    this.rowAllConstraintsColumnName = { 'All constraints': '' };
  }
}