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
import { ViewBase } from '../../libappbase/viewbase';
import { UIWaitSOP } from '../../libappsop/objectsop';
import { AppMP } from '../appmp';
import { FormExternalSupplies } from '../forms/form.externalsupplies';
 
export class ViewExternalSupplies extends ViewBase implements UIWaitSOP {
  public readonly name = 'External Supplies ';
  public readonly viewPath = 'Inventory > External Supplies';
 
  public formExternalSupplies = new FormExternalSupplies();
 
  /**
   * Switch to External Supplies view
   */
  public async switchTo(): Promise<void> {
    const appMP = AppMP.getInstance();
 
    await appMP.abpInventory.isVisible();
    await appMP.abpInventory.click();
    await appMP.abpInventory.btnExternalSupplies.click();
 
    await this.waitUILoaded();
  }
 
  public async waitUILoaded(): Promise<void> {
    await this.formExternalSupplies.waitUntilPresent();
  }
}