2025-11-17 11:36:04 +07:00
|
|
|
import { GeneralService } from '../share/generalservice.js'
|
|
|
|
|
|
|
|
|
|
export class BudgetSearchService {
|
|
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
|
this.generalService = new GeneralService()
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-17 15:21:33 +07:00
|
|
|
async getBudgetSearch(database, id, column) {
|
2025-11-17 11:36:04 +07:00
|
|
|
const sql = `
|
|
|
|
|
SELECT
|
2025-11-17 15:21:33 +07:00
|
|
|
${column}
|
2025-11-17 11:36:04 +07:00
|
|
|
FROM ${database}.bdgmst
|
|
|
|
|
`
|
|
|
|
|
const params = []
|
|
|
|
|
const result = await this.generalService.executeQueryParam(database, sql, params);
|
|
|
|
|
return result
|
|
|
|
|
}
|
2025-11-17 15:21:33 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// bdgseq,
|
|
|
|
|
// bdgnam,
|
|
|
|
|
// bdgcod,
|
|
|
|
|
// bdgttl,
|
|
|
|
|
// bdgedtdtm
|