| | |
| | | default_sql: setting.execute ? 'true' : 'false' |
| | | } |
| | | |
| | | if (setting.transaction === 'true') { |
| | | param.func = 'sPC_Get_TableData_try' |
| | | } |
| | | |
| | | let userName = sessionStorage.getItem('User_Name') || '' |
| | | let fullName = sessionStorage.getItem('Full_Name') || '' |
| | | let RoleID = sessionStorage.getItem('role_id') || '' |
| | |
| | | exec_type: 'y', |
| | | arr_field: statFields.map(col => col.field).join(','), |
| | | default_sql: setting.execute ? 'true' : 'false' |
| | | } |
| | | |
| | | if (setting.transaction === 'true') { |
| | | param.func = 'sPC_Get_TableData_try' |
| | | } |
| | | |
| | | let _dataresource = setting.dataresource |
| | |
| | | primaryKey: setting.primaryKey || '', |
| | | foreign_key: '', |
| | | sql: _dataresource, |
| | | script: _customScript |
| | | script: _customScript, |
| | | transaction: setting.transaction === 'true' |
| | | } |
| | | } |
| | | |
| | |
| | | export function getStructuredParams (params, config, BID = '') { |
| | | let LText_field = [] |
| | | let diffUser = false |
| | | let transaction = false |
| | | |
| | | let _LText = params.map((item, index) => { |
| | | let _script = item.script |
| | | |
| | | if (!diffUser && (/@userid@/ig.test(item.sql) || /@userid@/ig.test(_script))) { |
| | | diffUser = true |
| | | } |
| | | if (item.transaction) { |
| | | transaction = true |
| | | } |
| | | |
| | | item.columns.forEach(cell => { |
| | |
| | | BID: BID |
| | | } |
| | | |
| | | if (transaction) { |
| | | param.func = 'sPC_Get_structured_data_try' |
| | | } |
| | | |
| | | let { LText, LText1, LText2 } = Utils.sPCInUpDeFormatOptions(param.LText) |
| | | |
| | | param.LText1 = LText1 |