<?php
global $runnerTableSettings;
$runnerTableSettings['tb_materiais'] = array(
	'name' => 'tb_materiais',
	'shortName' => 'tb_materiais',
	'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' 
	),
	'afterEditAction' => 0,
	'afterEditDetails' => 'tb_materiais',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_materiais',
	'detailsBadgeColor' => '5f9ea0',
	'sql' => 'SELECT
	materialID,
	material,
	metrica,
	ativar
FROM
	tb_materiais
',
	'keyFields' => array( 
		'materialID' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'materialID' => array(
			'name' => 'materialID',
			'goodName' => 'materialID',
			'strField' => 'materialID',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'materialID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_materiais' 
		),
		'material' => array(
			'name' => 'material',
			'goodName' => 'material',
			'strField' => 'material',
			'index' => 2,
			'sqlExpression' => 'material',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_materiais' 
		),
		'metrica' => array(
			'name' => 'metrica',
			'goodName' => 'metrica',
			'strField' => 'metrica',
			'index' => 3,
			'sqlExpression' => 'metrica',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'tb_metricas',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'metricaID',
					'lookupDisplayField' => 'metrica',
					'lookupOrderBy' => 'metrica' 
				) 
			),
			'tableName' => 'tb_materiais',
			'viewLinkTable' => 'tb_metricas',
			'viewLinkLookup' => true 
		),
		'ativar' => array(
			'name' => 'ativar',
			'goodName' => 'ativar',
			'strField' => 'ativar',
			'index' => 4,
			'type' => 3,
			'sqlExpression' => 'ativar',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_materiais' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	materialID,
	material,
	metrica,
	ativar
FROM
	tb_materiais
',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'materialID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_materiais',
					'name' => 'materialID' 
				),
				'encrypted' => false,
				'columnName' => 'materialID' 
			),
			array(
				'sql' => 'material',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_materiais',
					'name' => 'material' 
				),
				'encrypted' => false,
				'columnName' => 'material' 
			),
			array(
				'sql' => 'metrica',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_materiais',
					'name' => 'metrica' 
				),
				'encrypted' => false,
				'columnName' => 'metrica' 
			),
			array(
				'sql' => 'ativar',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_materiais',
					'name' => 'ativar' 
				),
				'encrypted' => false,
				'columnName' => 'ativar' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_materiais',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_materiais',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'materialID',
						'material',
						'fornecedor',
						'metrica',
						'ativar' 
					),
					'name' => 'tb_materiais' 
				),
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'materialID,
	material,
	metrica,
	ativar',
		'fromListSql' => 'FROM
	tb_materiais',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_materiais',
	'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( 
			'materialID',
			'material',
			'metrica',
			'ativar' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'materialID',
			'material',
			'metrica',
			'ativar' 
		) 
	),
	'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['tb_materiais'] = array(
	'tableCaption' => 'Tb Materiais',
	'fieldLabels' => array(
		'materialID' => 'Material ID',
		'material' => 'Material',
		'metrica' => 'Metrica',
		'ativar' => 'Ativar' 
	),
	'fieldTooltips' => array(
		'materialID' => '',
		'material' => '',
		'metrica' => '',
		'ativar' => '' 
	),
	'fieldPlaceholders' => array(
		'materialID' => '',
		'material' => '',
		'metrica' => '',
		'ativar' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>