<?php
global $runnerTableSettings;
$runnerTableSettings['qa_outgoing_attachment'] = array(
	'name' => 'qa_outgoing_attachment',
	'shortName' => 'qa_outgoing_attachment',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'qa_outgoing_attachment',
	'afterAddDetail' => 'qa_outgoing_attachment',
	'detailsBadgeColor' => 'bc8f8f',
	'sql' => 'SELECT
	id,
	qa_outgoing_inspection_id,
	attachment_type,
	file_name,
	file_path,
	remarks,
	uploaded_by,
	uploaded_at
FROM
	qa_outgoing_attachment',
	'keyFields' => array( 
		'id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'id' => array(
			'name' => 'id',
			'goodName' => 'id',
			'strField' => 'id',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_attachment' 
		),
		'qa_outgoing_inspection_id' => array(
			'name' => 'qa_outgoing_inspection_id',
			'goodName' => 'qa_outgoing_inspection_id',
			'strField' => 'qa_outgoing_inspection_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'qa_outgoing_inspection_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'qa_outgoing_inspection',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'inspection_no' 
				) 
			),
			'tableName' => 'qa_outgoing_attachment',
			'viewLinkTable' => 'qa_outgoing_inspection',
			'viewLinkLookup' => true 
		),
		'attachment_type' => array(
			'name' => 'attachment_type',
			'goodName' => 'attachment_type',
			'strField' => 'attachment_type',
			'index' => 3,
			'type' => 129,
			'sqlExpression' => 'attachment_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'PHOTO',
						'INCIDENT_REPORT',
						'OTHER' 
					) 
				) 
			),
			'tableName' => 'qa_outgoing_attachment' 
		),
		'file_name' => array(
			'name' => 'file_name',
			'goodName' => 'file_name',
			'strField' => 'file_name',
			'index' => 4,
			'sqlExpression' => 'file_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_attachment' 
		),
		'file_path' => array(
			'name' => 'file_path',
			'goodName' => 'file_path',
			'strField' => 'file_path',
			'index' => 5,
			'sqlExpression' => 'file_path',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Document upload' 
				) 
			),
			'tableName' => 'qa_outgoing_attachment' 
		),
		'remarks' => array(
			'name' => 'remarks',
			'goodName' => 'remarks',
			'strField' => 'remarks',
			'index' => 6,
			'sqlExpression' => 'remarks',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_attachment' 
		),
		'uploaded_by' => array(
			'name' => 'uploaded_by',
			'goodName' => 'uploaded_by',
			'strField' => 'uploaded_by',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => 'uploaded_by',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_attachment' 
		),
		'uploaded_at' => array(
			'name' => 'uploaded_at',
			'goodName' => 'uploaded_at',
			'strField' => 'uploaded_at',
			'index' => 8,
			'type' => 135,
			'sqlExpression' => 'uploaded_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'defaultValue' => 'now()',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'qa_outgoing_attachment' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'qa_outgoing_inspection',
			'detailsKeys' => array( 
				'qa_outgoing_inspection_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	qa_outgoing_inspection_id,
	attachment_type,
	file_name,
	file_path,
	remarks,
	uploaded_by,
	uploaded_at
FROM
	qa_outgoing_attachment',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_attachment',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'qa_outgoing_inspection_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_attachment',
					'name' => 'qa_outgoing_inspection_id' 
				),
				'encrypted' => false,
				'columnName' => 'qa_outgoing_inspection_id' 
			),
			array(
				'sql' => 'attachment_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_attachment',
					'name' => 'attachment_type' 
				),
				'encrypted' => false,
				'columnName' => 'attachment_type' 
			),
			array(
				'sql' => 'file_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_attachment',
					'name' => 'file_name' 
				),
				'encrypted' => false,
				'columnName' => 'file_name' 
			),
			array(
				'sql' => 'file_path',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_attachment',
					'name' => 'file_path' 
				),
				'encrypted' => false,
				'columnName' => 'file_path' 
			),
			array(
				'sql' => 'remarks',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_attachment',
					'name' => 'remarks' 
				),
				'encrypted' => false,
				'columnName' => 'remarks' 
			),
			array(
				'sql' => 'uploaded_by',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_attachment',
					'name' => 'uploaded_by' 
				),
				'encrypted' => false,
				'columnName' => 'uploaded_by' 
			),
			array(
				'sql' => 'uploaded_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_attachment',
					'name' => 'uploaded_at' 
				),
				'encrypted' => false,
				'columnName' => 'uploaded_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'qa_outgoing_attachment',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'qa_outgoing_attachment',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'qa_outgoing_inspection_id',
						'attachment_type',
						'file_name',
						'file_path',
						'remarks',
						'uploaded_by',
						'uploaded_at' 
					),
					'name' => 'qa_outgoing_attachment' 
				),
				'joinOn' => array(
					'sql' => '',
					'parsed' => false,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => null 
				),
				'joinList' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'JoinOn',
					'field1' => array( 
						 
					),
					'field2' => array( 
						 
					) 
				),
				'link' => 0 
			) 
		),
		'where' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'groupBy' => array( 
			 
		),
		'having' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'orderBy' => array( 
			 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 1,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 2,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 3,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 4,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 5,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 6,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 7,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	qa_outgoing_inspection_id,
	attachment_type,
	file_name,
	file_path,
	remarks,
	uploaded_by,
	uploaded_at',
		'fromListSql' => 'FROM
	qa_outgoing_attachment',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'qa_outgoing_attachment',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'qa_outgoing_inspection_id',
			'attachment_type',
			'file_name',
			'file_path',
			'remarks',
			'uploaded_by',
			'uploaded_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'qa_outgoing_inspection_id',
			'attachment_type',
			'file_name',
			'file_path',
			'remarks',
			'uploaded_by',
			'uploaded_at' 
		) 
	),
	'connId' => 'conn',
	'clickActions' => array(
		'row' => array(
			'action' => 'noaction' 
		),
		'fields' => array(
			 
		) 
	),
	'geoCoding' => array(
		'enabled' => false,
		'latField' => '',
		'lonField' => '',
		'addressFields' => array( 
			 
		) 
	),
	'whereTabs' => array( 
		 
	),
	'labels' => array(
		 
	),
	'chartSettings' => array(
		 
	),
	'dataSourceOperations' => array(
		 
	),
	'calendarSettings' => array(
		'categoryColors' => array( 
			 
		) 
	),
	'ganttSettings' => array(
		'categoryColors' => array( 
			 
		) 
	) 
);

global $runnerTableLabels;
if( mlang_getcurrentlang() === 'English' ) {
	$runnerTableLabels['qa_outgoing_attachment'] = array(
	'tableCaption' => 'Qa Outgoing Attachment',
	'fieldLabels' => array(
		'id' => 'Id',
		'qa_outgoing_inspection_id' => 'Qa Outgoing Inspection Id',
		'attachment_type' => 'Attachment Type',
		'file_name' => 'File Name',
		'file_path' => 'File Path',
		'remarks' => 'Remarks',
		'uploaded_by' => 'Uploaded By',
		'uploaded_at' => 'Uploaded At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'qa_outgoing_inspection_id' => '',
		'attachment_type' => '',
		'file_name' => '',
		'file_path' => '',
		'remarks' => '',
		'uploaded_by' => '',
		'uploaded_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'qa_outgoing_inspection_id' => '',
		'attachment_type' => '',
		'file_name' => '',
		'file_path' => '',
		'remarks' => '',
		'uploaded_by' => '',
		'uploaded_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>