chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
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
import { Form } from '../../e2elib/lib/src/pageobjects/form.component';
import { ListBase } from '../../libappbase/listbase';
import { ListRow } from '../../e2elib/lib/src/pageobjects/list/listrow.component';
 
/**
 * Inventory Cost PISP form.
 */
export class FormInventoryCostPISP extends Form {
  public lstInventoryPISP = new ListInventoryPISP();
 
  public constructor() {
    super('FormInventoryCostPISP');
  }
}
 
/**
 * Inventory PISP list in Inventory Cost PISP form.
 */
class ListInventoryPISP extends ListBase {
  public constructor() {
    super('ListInventoryPISP');
  }
 
  public async getPISPByName(product: string): Promise<ListRow> {
    return this.getRowByValue([{ columnID: ListColumnInventoryPISP.Product, value: product }]);
  }
}
 
export enum ListColumnInventoryPISP {
  Product = 'Product',
  StockingPoint = 'Stocking point',
}