<?php
global $runnerTableSettings;
$runnerTableSettings['tb_produtos'] = array(
	'name' => 'tb_produtos',
	'shortName' => 'tb_produtos',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'masterlist' => array( 
			'masterlist' 
		),
		'masterprint' => array( 
			'masterprint' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'afterEditAction' => 0,
	'afterEditDetails' => 'tb_produtos',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_produtos',
	'detailsBadgeColor' => 'edca00',
	'sql' => 'SELECT
	pdtoiD,
	clienteID,
	referencia,
	nome_aux,
	categoria,
	status,
	foto,
	ficha_tec
FROM
	tb_produtos',
	'keyFields' => array( 
		'pdtoiD' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'pdtoiD' => array(
			'name' => 'pdtoiD',
			'goodName' => 'pdtoiD',
			'strField' => 'pdtoiD',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'pdtoiD',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_produtos' 
		),
		'clienteID' => array(
			'name' => 'clienteID',
			'goodName' => 'clienteID',
			'strField' => 'clienteID',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'clienteID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'clientes view',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'clienteID',
					'lookupDisplayField' => 'cliente',
					'lookupOrderBy' => 'cliente' 
				) 
			),
			'tableName' => 'tb_produtos',
			'viewLinkTable' => 'clientes view',
			'viewLinkLookup' => true 
		),
		'referencia' => array(
			'name' => 'referencia',
			'goodName' => 'referencia',
			'strField' => 'referencia',
			'index' => 3,
			'sqlExpression' => 'referencia',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_produtos' 
		),
		'nome_aux' => array(
			'name' => 'nome_aux',
			'goodName' => 'nome_aux',
			'strField' => 'nome_aux',
			'index' => 4,
			'sqlExpression' => 'nome_aux',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_produtos' 
		),
		'categoria' => array(
			'name' => 'categoria',
			'goodName' => 'categoria',
			'strField' => 'categoria',
			'index' => 5,
			'type' => 3,
			'sqlExpression' => 'categoria',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'tb_categpdtos',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'categpdtoID',
					'lookupDisplayField' => 'categoria',
					'lookupOrderBy' => 'categoria' 
				) 
			),
			'tableName' => 'tb_produtos',
			'viewLinkTable' => 'tb_categpdtos',
			'viewLinkLookup' => true 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 6,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 0,
					'lookupValues' => array( 
						'Modelagem',
						'Ficha Tecnica',
						'Aprovar',
						'Prototipo',
						'Amostra',
						'Aprovado',
						'Revisao Tecnica',
						'Cancelado',
						'Fora de Linha' 
					) 
				) 
			),
			'tableName' => 'tb_produtos' 
		),
		'foto' => array(
			'name' => 'foto',
			'goodName' => 'foto',
			'strField' => 'foto',
			'index' => 7,
			'type' => 201,
			'sqlExpression' => 'foto',
			'uploadFolder' => 'uploads\\foto_pdto',
			'viewFormats' => array(
				'view' => array(
					'format' => 'File-based Image',
					'imageThumbWidth' => 72,
					'imageThumbHeight' => 72,
					'imageMultipleMode' => 3,
					'imageShowThumbnail' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Document upload' 
				) 
			),
			'tableName' => 'tb_produtos' 
		),
		'ficha_tec' => array(
			'name' => 'ficha_tec',
			'goodName' => 'ficha_tec',
			'strField' => 'ficha_tec',
			'index' => 8,
			'type' => 201,
			'sqlExpression' => 'ficha_tec',
			'uploadFolder' => 'uploads\\ftec\\model_tec',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Document upload' 
				) 
			),
			'tableName' => 'tb_produtos' 
		) 
	),
	'detailsTables' => array( 
		'grade_pdto' 
	),
	'query' => array(
		'sql' => 'SELECT
	pdtoiD,
	clienteID,
	referencia,
	nome_aux,
	categoria,
	status,
	foto,
	ficha_tec
FROM
	tb_produtos',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'pdtoiD',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_produtos',
					'name' => 'pdtoiD' 
				),
				'encrypted' => false,
				'columnName' => 'pdtoiD' 
			),
			array(
				'sql' => 'clienteID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_produtos',
					'name' => 'clienteID' 
				),
				'encrypted' => false,
				'columnName' => 'clienteID' 
			),
			array(
				'sql' => 'referencia',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_produtos',
					'name' => 'referencia' 
				),
				'encrypted' => false,
				'columnName' => 'referencia' 
			),
			array(
				'sql' => 'nome_aux',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_produtos',
					'name' => 'nome_aux' 
				),
				'encrypted' => false,
				'columnName' => 'nome_aux' 
			),
			array(
				'sql' => 'categoria',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_produtos',
					'name' => 'categoria' 
				),
				'encrypted' => false,
				'columnName' => 'categoria' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_produtos',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'foto',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_produtos',
					'name' => 'foto' 
				),
				'encrypted' => false,
				'columnName' => 'foto' 
			),
			array(
				'sql' => 'ficha_tec',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_produtos',
					'name' => 'ficha_tec' 
				),
				'encrypted' => false,
				'columnName' => 'ficha_tec' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_produtos',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_produtos',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'pdtoiD',
						'clienteID',
						'referencia',
						'nome_aux',
						'categoria',
						'status',
						'foto',
						'ficha_tec' 
					),
					'name' => 'tb_produtos' 
				),
				'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' => 'pdtoiD,
	clienteID,
	referencia,
	nome_aux,
	categoria,
	status,
	foto,
	ficha_tec',
		'fromListSql' => 'FROM
	tb_produtos',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_produtos',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'masterlist' => array( 
			'masterlist' 
		),
		'masterprint' => array( 
			'masterprint' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'pdtoiD',
			'clienteID',
			'referencia',
			'nome_aux',
			'categoria',
			'status',
			'foto',
			'ficha_tec' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'pdtoiD',
			'clienteID',
			'referencia',
			'nome_aux',
			'categoria',
			'status',
			'foto',
			'ficha_tec' 
		) 
	),
	'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_produtos'] = array(
	'tableCaption' => 'Tb Produtos',
	'fieldLabels' => array(
		'pdtoiD' => 'PdtoiD',
		'clienteID' => 'Cliente ID',
		'referencia' => 'Referencia',
		'nome_aux' => 'Nome Aux',
		'categoria' => 'Categoria',
		'status' => 'Status',
		'foto' => 'Foto',
		'ficha_tec' => 'Ficha Tec' 
	),
	'fieldTooltips' => array(
		'pdtoiD' => '',
		'clienteID' => '',
		'referencia' => '',
		'nome_aux' => '',
		'categoria' => '',
		'status' => '',
		'foto' => '',
		'ficha_tec' => '' 
	),
	'fieldPlaceholders' => array(
		'pdtoiD' => '',
		'clienteID' => '',
		'referencia' => '',
		'nome_aux' => '',
		'categoria' => '',
		'status' => '',
		'foto' => '',
		'ficha_tec' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>