| | |
| | | default_sql: setting.execute ? 'true' : 'false' |
| | | } |
| | | |
| | | if (setting.transaction === 'true') { |
| | | param.func = 'sPC_Get_TableData_try' |
| | | } |
| | | // if (setting.transaction === 'true') { |
| | | // param.func = 'sPC_Get_TableData_try' |
| | | // } |
| | | |
| | | let userName = sessionStorage.getItem('User_Name') || '' |
| | | let fullName = sessionStorage.getItem('Full_Name') || '' |
| | |
| | | regoptions.forEach(item => { |
| | | _customScript = _customScript.replace(item.reg, item.value) |
| | | }) |
| | | if (window.GLOB.breakpoint) { |
| | | _customScript = _customScript.replace(/\$breakpoint_proc@/ig, window.GLOB.breakpoint) |
| | | } |
| | | } |
| | | |
| | | let LText = '' |
| | |
| | | default_sql: setting.execute ? 'true' : 'false' |
| | | } |
| | | |
| | | if (setting.transaction === 'true') { |
| | | param.func = 'sPC_Get_TableData_try' |
| | | } |
| | | // if (setting.transaction === 'true') { |
| | | // param.func = 'sPC_Get_TableData_try' |
| | | // } |
| | | |
| | | let _dataresource = setting.dataresource |
| | | let _customScript = '' |
| | |
| | | foreign_key: '', |
| | | sql: _dataresource, |
| | | script: _customScript, |
| | | transaction: setting.transaction === 'true' |
| | | // transaction: setting.transaction === 'true' |
| | | } |
| | | } |
| | | |
| | |
| | | export function getStructuredParams (params, config, BID) { |
| | | let LText_field = [] |
| | | let diffUser = false |
| | | let transaction = false |
| | | // let transaction = false |
| | | let loginId = `'${sessionStorage.getItem('LoginUID') || ''}'` |
| | | let sessionId = `'${localStorage.getItem('SessionUid') || ''}'` |
| | | let userId = `'${sessionStorage.getItem('UserID') || ''}'` |
| | |
| | | if (!diffUser && (/@userid@/ig.test(item.sql) || /@userid@/ig.test(_script))) { |
| | | diffUser = true |
| | | } |
| | | if (item.transaction) { |
| | | transaction = true |
| | | } |
| | | // if (item.transaction) { |
| | | // transaction = true |
| | | // } |
| | | |
| | | _sql = _sql.replace(/@ID@/ig, `''`) |
| | | _script = _script.replace(/@ID@/ig, `''`) |
| | |
| | | BID: BID |
| | | } |
| | | |
| | | if (transaction) { |
| | | param.func = 'sPC_Get_structured_data_try' |
| | | } |
| | | // if (transaction) { |
| | | // param.func = 'sPC_Get_structured_data_try' |
| | | // } |
| | | |
| | | let { LText, LText1, LText2 } = Utils.sPCInUpDeFormatOptions(param.LText) |
| | | |