<?php
global $runnerTableSettings;
$runnerTableSettings['qa_outgoing_checklist_result'] = array(
	'name' => 'qa_outgoing_checklist_result',
	'shortName' => 'qa_outgoing_checklist_result',
	'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_checklist_result',
	'afterAddDetail' => 'qa_outgoing_checklist_result',
	'detailsBadgeColor' => '6b8e23',
	'sql' => 'SELECT
	id,
	qa_outgoing_inspection_id,
	checklist_id,
	answer,
	remarks
FROM
	qa_outgoing_checklist_result',
	'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_checklist_result' 
		),
		'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_checklist_result',
			'viewLinkTable' => 'qa_outgoing_inspection',
			'viewLinkLookup' => true 
		),
		'checklist_id' => array(
			'name' => 'checklist_id',
			'goodName' => 'checklist_id',
			'strField' => 'checklist_id',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'checklist_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'qa_outgoing_checklist_setup',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'checklist_description' 
				) 
			),
			'tableName' => 'qa_outgoing_checklist_result',
			'viewLinkTable' => 'qa_outgoing_checklist_setup',
			'viewLinkLookup' => true 
		),
		'answer' => array(
			'name' => 'answer',
			'goodName' => 'answer',
			'strField' => 'answer',
			'index' => 4,
			'type' => 129,
			'sqlExpression' => 'answer',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 0,
					'lookupValues' => array( 
						'N/A',
						'YES',
						'NO' 
					) 
				) 
			),
			'tableName' => 'qa_outgoing_checklist_result' 
		),
		'remarks' => array(
			'name' => 'remarks',
			'goodName' => 'remarks',
			'strField' => 'remarks',
			'index' => 5,
			'sqlExpression' => 'remarks',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'qa_outgoing_checklist_result' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'qa_outgoing_inspection',
			'detailsKeys' => array( 
				'qa_outgoing_inspection_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		),
		array(
			'table' => 'qa_outgoing_checklist_setup',
			'detailsKeys' => array( 
				'checklist_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	qa_outgoing_inspection_id,
	checklist_id,
	answer,
	remarks
FROM
	qa_outgoing_checklist_result',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_checklist_result',
					'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_checklist_result',
					'name' => 'qa_outgoing_inspection_id' 
				),
				'encrypted' => false,
				'columnName' => 'qa_outgoing_inspection_id' 
			),
			array(
				'sql' => 'checklist_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_checklist_result',
					'name' => 'checklist_id' 
				),
				'encrypted' => false,
				'columnName' => 'checklist_id' 
			),
			array(
				'sql' => 'answer',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_checklist_result',
					'name' => 'answer' 
				),
				'encrypted' => false,
				'columnName' => 'answer' 
			),
			array(
				'sql' => 'remarks',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'qa_outgoing_checklist_result',
					'name' => 'remarks' 
				),
				'encrypted' => false,
				'columnName' => 'remarks' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'qa_outgoing_checklist_result',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'qa_outgoing_checklist_result',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'qa_outgoing_inspection_id',
						'checklist_id',
						'answer',
						'remarks' 
					),
					'name' => 'qa_outgoing_checklist_result' 
				),
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	qa_outgoing_inspection_id,
	checklist_id,
	answer,
	remarks',
		'fromListSql' => 'FROM
	qa_outgoing_checklist_result',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'qa_outgoing_checklist_result',
	'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',
			'checklist_id',
			'answer',
			'remarks' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'qa_outgoing_inspection_id',
			'checklist_id',
			'answer',
			'remarks' 
		) 
	),
	'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_checklist_result'] = array(
	'tableCaption' => 'Qa Outgoing Checklist Result',
	'fieldLabels' => array(
		'id' => 'Id',
		'qa_outgoing_inspection_id' => 'Qa Outgoing Inspection Id',
		'checklist_id' => 'Checklist Id',
		'answer' => 'Answer',
		'remarks' => 'Remarks' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'qa_outgoing_inspection_id' => '',
		'checklist_id' => '',
		'answer' => '',
		'remarks' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'qa_outgoing_inspection_id' => '',
		'checklist_id' => '',
		'answer' => '',
		'remarks' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>