| | |
| | | primaryId: this.props.param.primaryId || '', |
| | | data: this.props.param.data || null, |
| | | BIDs: { |
| | | mainTable: config.setting.onload === 'true' ? (this.props.param.primaryId || '') : '', |
| | | mainTabledata: config.setting.onload === 'true' ? (config.setting.datatype === 'query' ? '' : this.props.param.data) : '' |
| | | mainTable: config.setting.onload !== 'false' ? (this.props.param.primaryId || '') : '', |
| | | mainTabledata: config.setting.onload !== 'false' ? (config.setting.datatype === 'query' ? '' : this.props.param.data) : '' |
| | | } |
| | | }, () => { |
| | | this.improveSelectOption(config.groups) |
| | | |
| | | if (config.setting.datatype === 'query' && config.setting.onload === 'true') { |
| | | if (config.setting.datatype === 'query' && config.setting.onload !== 'false') { |
| | | if (!this.props.param.primaryId) { |
| | | notification.warning({ |
| | | top: 92, |
| | |
| | | func: 'sPC_Get_TableData', |
| | | obj_name: 'data', |
| | | arr_field: arr_field, |
| | | appkey: window.GLOB.appkey || '' |
| | | appkey: window.GLOB.appkey || '', |
| | | ID: primaryId |
| | | } |
| | | |
| | | let _dataresource = setting.dataresource |
| | |
| | | _dataresource = '(' + _dataresource + ') tb' |
| | | } |
| | | |
| | | let LText = `select ${arr_field} from (select ${arr_field} ,ROW_NUMBER() from ${_dataresource}) tmptable where ${setting.primaryKey}=${primaryId}` |
| | | if (!/@ID@/ig.test(_dataresource)) { |
| | | _dataresource = `${_dataresource} where ${setting.primaryKey}='${primaryId}'` |
| | | } |
| | | |
| | | let LText = `select ${arr_field} from ${_dataresource}` |
| | | |
| | | param.LText = Utils.formatOptions(LText) |
| | | param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' |