| import { AppMP } from '../appmp'; | 
| import { ViewBase } from '../../libappbase/viewbase'; | 
| import { UIWaitSOP } from '../../libappsop/objectsop'; | 
| import { FormCustomerOrders } from '../forms/form.customerorders'; | 
|   | 
| export class ViewCustomerOrders extends ViewBase implements UIWaitSOP { | 
|   public readonly name = 'Customer Orders'; | 
|   public readonly viewPath = 'Sales > Customer Orders'; | 
|   | 
|   public formCustomerOrders = new FormCustomerOrders(); | 
|   | 
|   public async switchTo(): Promise<void> { | 
|     const appMP = AppMP.getInstance(); | 
|     // Click Sales action bar page | 
|     await appMP.abpSales.click(); | 
|     await appMP.abpSales.btnCustomerOrders.click(); | 
|   | 
|     await this.waitUILoaded(); | 
|   } | 
|   | 
|   public async waitUILoaded(): Promise<void> { | 
|     await this.formCustomerOrders.waitUntilPresent(); | 
|   } | 
| } |