-- EXEC MIG_INSERT_DRAFTSIGHT_MAPPING_INFO_Sp
CREATE OR ALTER PROCEDURE MIG_INSERT_DRAFTSIGHT_MAPPING_INFO_Sp
AS
BEGIN
	
	DELETE FROM MIG_PROP_NAMES_MAPPING WHERE AppName = 'DRAFTSIGHT'
	
	INSERT INTO MIG_PROP_NAMES_MAPPING(AppName, Category, PropName, PropDescription, ControlType, LegacyPropName) 
	VALUES
	 ('DRAFTSIGHT', 'AFTER_SAVE', 'd001', 'Show message on successful save', 'Check Box', 'SHOW_MESSAGE_ON_SUCCESSFUL_SAVE')
	,('DRAFTSIGHT', 'AFTER_SAVE', 'd002', 'Check In Cleanup', 'Combo Box', 'CHECK_IN_CLEANUP')
	,('DRAFTSIGHT', 'AFTER_SAVE', 'd003', 'Save and Unlock Cleanup', 'Combo Box', 'SAVE_AND_UNLOCK_CLEANUP')
	,('DRAFTSIGHT', 'ATTACHED_TO_WKFL', 'd004', 'Attached to Business Process', 'Combo Box', 'ATTACHED_TO_BP')
	,('DRAFTSIGHT', 'ATTACHED_TO_WKFL', 'd005', 'Attach all related objects', 'Check Box', 'DISPATCH_ATTACH_ALL_RELATED_OBJECTS')
	,('DRAFTSIGHT', 'ATTACHED_TO_WKFL', 'd006', 'Allow edit Workflow', 'Check Box', 'ALLOW_EDIT_WORKFLOW')
	,('DRAFTSIGHT', 'ATTACHED_TO_WKFL', 'd007', 'Action for objects locked by Business Process', 'Combo Box', 'ACTION_FOR_OBJECTS_LOCKED_BY_BP')
	,('DRAFTSIGHT', 'GENERAL', 'd008', 'Allow Link to Released Items', 'Check Box', 'ALLOW_LINK_TO_RELEASED_ITEMS')
	,('DRAFTSIGHT', 'GENERAL', 'd009', 'File Name Uniqueness', 'Combo Box', 'UNIQUE_FILE_NAMES')
	,('DRAFTSIGHT', 'GENERAL', 'd010', 'Disable actions on view files', 'Combo Box', 'DISABLE_ACTIONS_ON_VIEW_FILES')
	,('DRAFTSIGHT', 'GENERAL', 'd011', 'Query Search Default', 'Combo Box', 'QUERY_SEARCH_DEFAULT')
	,('DRAFTSIGHT', 'GENERAL', 'd012', 'Allow reload of already opened files', 'Check Box', 'ALLOW_RELOAD_OF_ALREADY_OPENED_FILES')
	,('DRAFTSIGHT', 'GENERAL', 'd013', 'Show message on successful open', 'Check Box', 'SHOW_MESSAGE_ON_SUCCESSFUL_OPEN')
	,('DRAFTSIGHT', 'GENERAL', 'd014', 'Warn user when the same item is linked to parent and child components', 'Check Box', 'SHOW_BOM_ERROR_PARENT_AND_CHILD_WITH_SAME_ITEM')
	,('DRAFTSIGHT', 'GENERAL', 'd015', 'Take Ownership during Edit File in Integration', 'Check Box', 'TAKE_OWNERSHIP_DURING_EDIT_FILE_IN_INTEGRATION')
	,('DRAFTSIGHT', 'GENERAL', 'd016', 'Skip Meta Data comparison during Download', 'Check Box', 'SKIP_META_DATA_COMPARISON_DURING_DOWNLOAD')
	,('DRAFTSIGHT', 'GENERAL', 'd017', 'Skip Mapping for Released files during Download', 'Check Box', 'SKIP_MAPPING_FOR_RELEASED_FILES')
	,('DRAFTSIGHT', 'GENERAL', 'd018', 'Disable modify event prompt to check-out', 'Check Box', 'DISABLE_MODIFY_EVENT_PROMPT_TO_CHECK_OUT')
	,('DRAFTSIGHT', 'INITAL_SAVE_OPTION', 'd019', 'Set Object Attribute During Save', 'Check Box', 'SET_ATTRIBUTES_MANUALLY')
	,('DRAFTSIGHT', 'INITAL_SAVE_OPTION', 'd020', 'Specify Manual ID for Documents', 'Check Box', 'DOCUMENT_MANUAL_ID')
	,('DRAFTSIGHT', 'INITAL_SAVE_OPTION', 'd021', 'Specify Manual ID for Items', 'Check Box', 'ITEM_MANUAL_ID')
	,('DRAFTSIGHT', 'INITAL_SAVE_OPTION', 'd022', 'Create Documents Only', 'Check Box', 'CREATE_DOCUMENTS_ONLY')
	,('DRAFTSIGHT', 'LOCATIONS', 'd023', 'Edit Location', 'Text And Browse Button', 'EDIT_LOCATION')
	,('DRAFTSIGHT', 'LOCATIONS', 'd024', 'View Location', 'Text And Browse Button', 'VIEW_LOCATION')
	,('DRAFTSIGHT', 'SAVE_NEUTRAL_FILES', 'd025', 'Generate Neutral Files', 'Check Box', 'GENERATE_NEUTRAL_FILES')
	,('DRAFTSIGHT', 'SAVE_NEUTRAL_FILES', 'd026', 'Generate Neutral Files during', 'Combo Box', 'NEUTRAL_FILES_GENERATION')
	,('DRAFTSIGHT', 'SAVE_NEUTRAL_FILES', 'd027', 'Show Neutral files during Save', 'Check Box', 'SHOW_GENERATE_NEUTRAL_FILES_DURING_SAVE')
	,('DRAFTSIGHT', 'SAVE_NEUTRAL_FILES', 'd028', 'BMP', 'Check Box', 'NEUTRAL_FILES_DRAWING_BMP')
	,('DRAFTSIGHT', 'SAVE_NEUTRAL_FILES', 'd029', 'PDF', 'Check Box', 'NEUTRAL_FILES_DRAWING_PDF')
	,('DRAFTSIGHT', 'SAVE_NEUTRAL_FILES', 'd030', 'Layouts for BMP Generation', 'Combo Box', 'LAYOUTS_FOR_BMP_GENERATION')
	,('DRAFTSIGHT', 'SAVE_NEUTRAL_FILES', 'd031', 'Layouts for PDF Generation', 'Combo Box', 'LAYOUTS_FOR_PDF_GENERATION')
	,('DRAFTSIGHT', 'SAVE_NEUTRAL_FILES', 'd032', 'Include Model Space Layout in every PDF', 'Check Box', 'INCLUDE_MODELSPACE_LAYOUT_IN_EVERY_PDF')
	,('DRAFTSIGHT', 'SET_FILE_NAMES_BASED_ON_DOCUMENT_ID', 'd033', 'Set filename for', 'Combo Box', 'SET_FILE_NAME_FOR')
	,('DRAFTSIGHT', 'SET_FILE_NAMES_BASED_ON_DOCUMENT_ID', 'd034', 'Generate Document-ID before displaying Set Object Attributes dialog', 'Check Box', 'GENERATE_DOCUMENT_ID_BEFORE_DISPLAYING_SET_ATTRIBUTES_DIALOG')
	,('DRAFTSIGHT', 'SET_ITEM_ID_INITIAL_SAVE', 'd035', 'Set Item-ID based on', 'Combo Box', 'INITAL_SETTING_OF_ITEM_ID_TO_MATCH_FILENAME')
	,('DRAFTSIGHT', 'SET_ITEM_ID_INITIAL_SAVE', 'd036', 'Action to take if Item-ID exists in PLM database', 'Combo Box', 'ACTION_TO_TAKE_IF_ITEMID_EXISTS_IN_PLM')
	,('DRAFTSIGHT', 'SET_ITEM_ID_INITIAL_SAVE', 'd037', 'Action to take when same Item-ID is generated for multiple files', 'Combo Box', 'DUPLICATE_ITEM_IDS_ACTION')
	,('DRAFTSIGHT', 'THUMBNAILS', 'd038', 'Generate thumbnails during Save to PLM', 'Check Box', 'GENERATE_THUMBNAILS_DURING_SAVE_TO_PLM')
	,('DRAFTSIGHT', 'THUMBNAILS', 'd039', 'Generate thumbnails for CAD file structure', 'Combo Box', 'THUMBNAIL_GENERATION_FOR_SUBSTRUCTURE')
	,('DRAFTSIGHT', 'THUMBNAILS', 'd040', 'Layout for thumbnail generation', 'Combo Box', 'LAYOUT_FOR_THUMBNAIL_GENERATION')
	,('DRAFTSIGHT', 'THUMBNAILS', 'd041', 'Thumbnails Size', 'Text Box', 'THUMBNAILS_SIZE')
	,('DRAFTSIGHT', 'TROUBLESHOOTING', 'd042', 'Generate Log files', 'Check Box', 'GENERATE_LOG_FILES')
END 

