HANDLE, DC_GROUP_BO, PARAMETER_NAME, DATA_TYPE, STATUS, ALLOW_MISSING_VALUE, MIN_VALUE, MAX_VALUE, SEQUENCE, PERFORM_SPC, DISPLAY_CHART, DESCRIPTION, UNITS, SPC_CHART_BO, DISPLAY_DATA_INFORMATION, OVERRIDE_MIN_MAX, DC_VALUE_MASK, EXPRESSION_BUILDER, REQUIRED_DATA_ENTRIES, OPTIONAL_DATA_ENTRIES, SHORT_RUN, OPC_ACQUIRE_AT, OPC_SERVER, OPC_DEVICE, OPC_TAG, OPC_SERVER_HOSTNAME, OPC_SERVER_MODEL, OPC_SERVER_PROGID, OPC_SERVER_CLSID, OPC_DEVICE_ID, OPC_TAG_ID, SCRIPT_BO, BOOLEAN_ZERO_VALUE, BOOLEAN_ONE_VALUE, ERP_QM_CHAR_TYPE, ERP_IS_QM_CRITICAL, SOFT_LIMIT_CHECK, AUTO_LOG_NC, NC_CODE_BO, DATA_FIELD_BO, INSPECTION_SAMPLE_SIZE, TARGET_VALUE
INSERT INTO DC_PARAMETER
HANDLE,
DC_GROUP_BO,PARAMETER_NAME,DATA_TYPE,STATUS,ALLOW_MISSING_VALUE,MIN_VALUE,MAX_VALUE,SEQUENCE,PERFORM_SPC,DISPLAY_CHART,DESCRIPTION,UNITS,SPC_CHART_BO,DISPLAY_DATA_INFORMATION,OVERRIDE_MIN_MAX,DC_VALUE_MASK,EXPRESSION_BUILDER,REQUIRED_DATA_ENTRIES,OPTIONAL_DATA_ENTRIES,SHORT_RUN,OPC_ACQUIRE_AT,OPC_SERVER,OPC_DEVICE,OPC_TAG,OPC_SERVER_HOSTNAME,OPC_SERVER_MODEL,OPC_SERVER_PROGID,OPC_SERVER_CLSID,OPC_DEVICE_ID,OPC_TAG_ID,SCRIPT_BO,BOOLEAN_ZERO_VALUE,BOOLEAN_ONE_VALUE,ERP_QM_CHAR_TYPE,ERP_IS_QM_CRITICAL,SOFT_LIMIT_CHECK,AUTO_LOG_NC,NC_CODE_BO,DATA_FIELD_BO,INSPECTION_SAMPLE_SIZE,TARGET_VALUE, VALUES
#{handle},
#{dcGroupBo},#{parameterName},#{dataType},#{status},#{allowMissingValue},#{minValue},#{maxValue},#{sequence},#{performSpc},#{displayChart},#{description},#{units},#{spcChartBo},#{displayDataInformation},#{overrideMinMax},#{dcValueMask},#{expressionBuilder},#{requiredDataEntries},#{optionalDataEntries},#{shortRun},#{opcAcquireAt},#{opcServer},#{opcDevice},#{opcTag},#{opcServerHostname},#{opcServerModel},#{opcServerProgid},#{opcServerClsid},#{opcDeviceId},#{opcTagId},#{scriptBo},#{booleanZeroValue},#{booleanOneValue},#{erpQmCharType},#{erpIsQmCritical},#{softLimitCheck},#{autoLogNc},#{ncCodeBo},#{dataFieldBo},#{inspectionSampleSize},#{targetValue},
INSERT INTO DC_PARAMETER
VALUES
#{handle},
#{dcGroupBo},
#{parameterName},
#{dataType},
#{status},
#{allowMissingValue},
#{minValue},
#{maxValue},
#{sequence},
#{performSpc},
#{displayChart},
#{description},
#{units},
#{spcChartBo},
#{displayDataInformation},
#{overrideMinMax},
#{dcValueMask},
#{expressionBuilder},
#{requiredDataEntries},
#{optionalDataEntries},
#{shortRun},
#{opcAcquireAt},
#{opcServer},
#{opcDevice},
#{opcTag},
#{opcServerHostname},
#{opcServerModel},
#{opcServerProgid},
#{opcServerClsid},
#{opcDeviceId},
#{opcTagId},
#{scriptBo},
#{booleanZeroValue},
#{booleanOneValue},
#{erpQmCharType},
#{erpIsQmCritical},
#{softLimitCheck},
#{autoLogNc},
#{ncCodeBo},
#{dataFieldBo},
#{inspectionSampleSize},
#{targetValue},
UPDATE DC_PARAMETER HANDLE=#{et.handle},DC_GROUP_BO=#{et.dcGroupBo},PARAMETER_NAME=#{et.parameterName},DATA_TYPE=#{et.dataType},STATUS=#{et.status},ALLOW_MISSING_VALUE=#{et.allowMissingValue},MIN_VALUE=#{et.minValue},MAX_VALUE=#{et.maxValue},SEQUENCE=#{et.sequence},PERFORM_SPC=#{et.performSpc},DISPLAY_CHART=#{et.displayChart},DESCRIPTION=#{et.description},UNITS=#{et.units},SPC_CHART_BO=#{et.spcChartBo},DISPLAY_DATA_INFORMATION=#{et.displayDataInformation},OVERRIDE_MIN_MAX=#{et.overrideMinMax},DC_VALUE_MASK=#{et.dcValueMask},EXPRESSION_BUILDER=#{et.expressionBuilder},REQUIRED_DATA_ENTRIES=#{et.requiredDataEntries},OPTIONAL_DATA_ENTRIES=#{et.optionalDataEntries},SHORT_RUN=#{et.shortRun},OPC_ACQUIRE_AT=#{et.opcAcquireAt},OPC_SERVER=#{et.opcServer},OPC_DEVICE=#{et.opcDevice},OPC_TAG=#{et.opcTag},OPC_SERVER_HOSTNAME=#{et.opcServerHostname},OPC_SERVER_MODEL=#{et.opcServerModel},OPC_SERVER_PROGID=#{et.opcServerProgid},OPC_SERVER_CLSID=#{et.opcServerClsid},OPC_DEVICE_ID=#{et.opcDeviceId},OPC_TAG_ID=#{et.opcTagId},SCRIPT_BO=#{et.scriptBo},BOOLEAN_ZERO_VALUE=#{et.booleanZeroValue},BOOLEAN_ONE_VALUE=#{et.booleanOneValue},ERP_QM_CHAR_TYPE=#{et.erpQmCharType},ERP_IS_QM_CRITICAL=#{et.erpIsQmCritical},SOFT_LIMIT_CHECK=#{et.softLimitCheck},AUTO_LOG_NC=#{et.autoLogNc},NC_CODE_BO=#{et.ncCodeBo},DATA_FIELD_BO=#{et.dataFieldBo},INSPECTION_SAMPLE_SIZE=#{et.inspectionSampleSize},TARGET_VALUE=#{et.targetValue},
HANDLE=#{ew.entity.handle}
AND DC_GROUP_BO=#{ew.entity.dcGroupBo} AND PARAMETER_NAME=#{ew.entity.parameterName} AND DATA_TYPE=#{ew.entity.dataType} AND STATUS=#{ew.entity.status} AND ALLOW_MISSING_VALUE=#{ew.entity.allowMissingValue} AND MIN_VALUE=#{ew.entity.minValue} AND MAX_VALUE=#{ew.entity.maxValue} AND SEQUENCE=#{ew.entity.sequence} AND PERFORM_SPC=#{ew.entity.performSpc} AND DISPLAY_CHART=#{ew.entity.displayChart} AND DESCRIPTION=#{ew.entity.description} AND UNITS=#{ew.entity.units} AND SPC_CHART_BO=#{ew.entity.spcChartBo} AND DISPLAY_DATA_INFORMATION=#{ew.entity.displayDataInformation} AND OVERRIDE_MIN_MAX=#{ew.entity.overrideMinMax} AND DC_VALUE_MASK=#{ew.entity.dcValueMask} AND EXPRESSION_BUILDER=#{ew.entity.expressionBuilder} AND REQUIRED_DATA_ENTRIES=#{ew.entity.requiredDataEntries} AND OPTIONAL_DATA_ENTRIES=#{ew.entity.optionalDataEntries} AND SHORT_RUN=#{ew.entity.shortRun} AND OPC_ACQUIRE_AT=#{ew.entity.opcAcquireAt} AND OPC_SERVER=#{ew.entity.opcServer} AND OPC_DEVICE=#{ew.entity.opcDevice} AND OPC_TAG=#{ew.entity.opcTag} AND OPC_SERVER_HOSTNAME=#{ew.entity.opcServerHostname} AND OPC_SERVER_MODEL=#{ew.entity.opcServerModel} AND OPC_SERVER_PROGID=#{ew.entity.opcServerProgid} AND OPC_SERVER_CLSID=#{ew.entity.opcServerClsid} AND OPC_DEVICE_ID=#{ew.entity.opcDeviceId} AND OPC_TAG_ID=#{ew.entity.opcTagId} AND SCRIPT_BO=#{ew.entity.scriptBo} AND BOOLEAN_ZERO_VALUE=#{ew.entity.booleanZeroValue} AND BOOLEAN_ONE_VALUE=#{ew.entity.booleanOneValue} AND ERP_QM_CHAR_TYPE=#{ew.entity.erpQmCharType} AND ERP_IS_QM_CRITICAL=#{ew.entity.erpIsQmCritical} AND SOFT_LIMIT_CHECK=#{ew.entity.softLimitCheck} AND AUTO_LOG_NC=#{ew.entity.autoLogNc} AND NC_CODE_BO=#{ew.entity.ncCodeBo} AND DATA_FIELD_BO=#{ew.entity.dataFieldBo} AND INSPECTION_SAMPLE_SIZE=#{ew.entity.inspectionSampleSize} AND TARGET_VALUE=#{ew.entity.targetValue}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM DC_PARAMETER
${k} = #{cm[${k}]}
DELETE FROM DC_PARAMETER
HANDLE=#{ew.entity.handle}
AND DC_GROUP_BO=#{ew.entity.dcGroupBo} AND PARAMETER_NAME=#{ew.entity.parameterName} AND DATA_TYPE=#{ew.entity.dataType} AND STATUS=#{ew.entity.status} AND ALLOW_MISSING_VALUE=#{ew.entity.allowMissingValue} AND MIN_VALUE=#{ew.entity.minValue} AND MAX_VALUE=#{ew.entity.maxValue} AND SEQUENCE=#{ew.entity.sequence} AND PERFORM_SPC=#{ew.entity.performSpc} AND DISPLAY_CHART=#{ew.entity.displayChart} AND DESCRIPTION=#{ew.entity.description} AND UNITS=#{ew.entity.units} AND SPC_CHART_BO=#{ew.entity.spcChartBo} AND DISPLAY_DATA_INFORMATION=#{ew.entity.displayDataInformation} AND OVERRIDE_MIN_MAX=#{ew.entity.overrideMinMax} AND DC_VALUE_MASK=#{ew.entity.dcValueMask} AND EXPRESSION_BUILDER=#{ew.entity.expressionBuilder} AND REQUIRED_DATA_ENTRIES=#{ew.entity.requiredDataEntries} AND OPTIONAL_DATA_ENTRIES=#{ew.entity.optionalDataEntries} AND SHORT_RUN=#{ew.entity.shortRun} AND OPC_ACQUIRE_AT=#{ew.entity.opcAcquireAt} AND OPC_SERVER=#{ew.entity.opcServer} AND OPC_DEVICE=#{ew.entity.opcDevice} AND OPC_TAG=#{ew.entity.opcTag} AND OPC_SERVER_HOSTNAME=#{ew.entity.opcServerHostname} AND OPC_SERVER_MODEL=#{ew.entity.opcServerModel} AND OPC_SERVER_PROGID=#{ew.entity.opcServerProgid} AND OPC_SERVER_CLSID=#{ew.entity.opcServerClsid} AND OPC_DEVICE_ID=#{ew.entity.opcDeviceId} AND OPC_TAG_ID=#{ew.entity.opcTagId} AND SCRIPT_BO=#{ew.entity.scriptBo} AND BOOLEAN_ZERO_VALUE=#{ew.entity.booleanZeroValue} AND BOOLEAN_ONE_VALUE=#{ew.entity.booleanOneValue} AND ERP_QM_CHAR_TYPE=#{ew.entity.erpQmCharType} AND ERP_IS_QM_CRITICAL=#{ew.entity.erpIsQmCritical} AND SOFT_LIMIT_CHECK=#{ew.entity.softLimitCheck} AND AUTO_LOG_NC=#{ew.entity.autoLogNc} AND NC_CODE_BO=#{ew.entity.ncCodeBo} AND DATA_FIELD_BO=#{ew.entity.dataFieldBo} AND INSPECTION_SAMPLE_SIZE=#{ew.entity.inspectionSampleSize} AND TARGET_VALUE=#{ew.entity.targetValue}
${ew.sqlSegment}
${ew.sqlSegment}