const defaultSearch = {
lineitem: {
jub: [{
- id: "0",
+ id: '0',
__gte: true
}]
},
purchase_order: {
acqpo: [{
- id: "0",
+ id: '0',
__gte: true
}]
},
picklist: {
acqpl: [{
- id: "0",
+ id: '0',
__gte: true
}]
},
invoice: {
acqinv: [{
- id: "0",
+ id: '0',
__gte: true
}]
},
-}
+};
const searchOptions = {
lineitem: {
}
getAcqSearchDataSource(searchType: string): GridDataSource {
- let gridSource = new GridDataSource();
+ const gridSource = new GridDataSource();
gridSource.getRows = (pager: Pager) => {
- let opts = { ...searchOptions[searchType] };
+ const opts = { ...searchOptions[searchType] };
opts['offset'] = pager.offset;
opts['limit'] = pager.limit;
return this.net.request(
templateUrl: 'invoice-results.component.html',
providers: [AcqSearchService]
})
-export class InvoiceResultsComponent {
+export class InvoiceResultsComponent implements OnInit {
gridSource: GridDataSource;
@ViewChild('acqSearchInvoicesGrid', { static: true }) invoiceResultsGrid: GridComponent;
templateUrl: 'lineitem-results.component.html',
providers: [AcqSearchService]
})
-export class LineitemResultsComponent {
+export class LineitemResultsComponent implements OnInit {
gridSource: GridDataSource;
@ViewChild('acqSearchLineitemsGrid', { static: true }) lineitemResultsGrid: GridComponent;
templateUrl: 'picklist-results.component.html',
providers: [AcqSearchService]
})
-export class PicklistResultsComponent {
+export class PicklistResultsComponent implements OnInit {
gridSource: GridDataSource;
@ViewChild('acqSearchPicklistsGrid', { static: true }) picklistResultsGrid: GridComponent;
templateUrl: 'purchase-order-results.component.html',
providers: [AcqSearchService]
})
-export class PurchaseOrderResultsComponent {
+export class PurchaseOrderResultsComponent implements OnInit {
gridSource: GridDataSource;
@ViewChild('acqSearchPurchaseOrdersGrid', { static: true }) purchaseOrderResultsGrid: GridComponent;