<?php
global $runnerTableSettings;
$runnerTableSettings['tb_orcamento_producao'] = array(
	'name' => 'tb_orcamento_producao',
	'shortName' => 'tb_orcamento_producao',
	'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_orcamento_producao',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_orcamento_producao',
	'detailsBadgeColor' => '00c2c5',
	'sql' => 'SELECT
	orca_ID,
	`data`,
	condicao,
	status,
	cliente,
	pdto
FROM
	tb_orcamento_producao',
	'keyFields' => array( 
		'orca_ID' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'orca_ID' => array(
			'name' => 'orca_ID',
			'goodName' => 'orca_ID',
			'strField' => 'orca_ID',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'orca_ID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_orcamento_producao' 
		),
		'data' => array(
			'name' => 'data',
			'goodName' => 'data',
			'strField' => 'data',
			'index' => 2,
			'type' => 7,
			'sqlExpression' => '`data`',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tb_orcamento_producao' 
		),
		'condicao' => array(
			'name' => 'condicao',
			'goodName' => 'condicao',
			'strField' => 'condicao',
			'index' => 3,
			'sqlExpression' => 'condicao',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'tb_orcamento_producao' 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 4,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 0,
					'lookupValues' => array( 
						'Solicitado',
						'Elaboracao',
						'Enviado',
						'Aguarda Retorno',
						'Aprovado',
						'Rejeitado',
						'Cancelado' 
					) 
				) 
			),
			'tableName' => 'tb_orcamento_producao' 
		),
		'cliente' => array(
			'name' => 'cliente',
			'goodName' => 'cliente',
			'strField' => 'cliente',
			'index' => 5,
			'type' => 3,
			'sqlExpression' => 'cliente',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'tb_clientes',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'clienteID',
					'lookupDisplayField' => 'cliente',
					'lookupOrderBy' => 'cliente' 
				) 
			),
			'tableName' => 'tb_orcamento_producao',
			'viewLinkTable' => 'tb_clientes',
			'viewLinkLookup' => true 
		),
		'pdto' => array(
			'name' => 'pdto',
			'goodName' => 'pdto',
			'strField' => 'pdto',
			'index' => 6,
			'type' => 3,
			'sqlExpression' => 'pdto',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'tb_produtos',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'pdtoiD',
					'lookupDisplayField' => 'referencia',
					'lookupOrderBy' => 'clienteID',
					'lookupDependent' => true,
					'lookupDependentFields' => array( 
						array(
							'masterField' => 'cliente',
							'lookupField' => 'clienteID' 
						) 
					) 
				) 
			),
			'tableName' => 'tb_orcamento_producao',
			'viewLinkTable' => 'tb_produtos',
			'viewLinkLookup' => true 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	orca_ID,
	`data`,
	condicao,
	status,
	cliente,
	pdto
FROM
	tb_orcamento_producao',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'orca_ID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_orcamento_producao',
					'name' => 'orca_ID' 
				),
				'encrypted' => false,
				'columnName' => 'orca_ID' 
			),
			array(
				'sql' => '`data`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_orcamento_producao',
					'name' => 'data' 
				),
				'encrypted' => false,
				'columnName' => 'data' 
			),
			array(
				'sql' => 'condicao',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_orcamento_producao',
					'name' => 'condicao' 
				),
				'encrypted' => false,
				'columnName' => 'condicao' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_orcamento_producao',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'cliente',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_orcamento_producao',
					'name' => 'cliente' 
				),
				'encrypted' => false,
				'columnName' => 'cliente' 
			),
			array(
				'sql' => 'pdto',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_orcamento_producao',
					'name' => 'pdto' 
				),
				'encrypted' => false,
				'columnName' => 'pdto' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_orcamento_producao',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_orcamento_producao',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'orca_ID',
						'data',
						'condicao',
						'status',
						'cliente',
						'pdto' 
					),
					'name' => 'tb_orcamento_producao' 
				),
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'orca_ID,
	`data`,
	condicao,
	status,
	cliente,
	pdto',
		'fromListSql' => 'FROM
	tb_orcamento_producao',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_orcamento_producao',
	'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( 
			'orca_ID',
			'data',
			'condicao',
			'status',
			'cliente',
			'pdto' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'orca_ID',
			'data',
			'condicao',
			'status',
			'cliente',
			'pdto' 
		) 
	),
	'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_orcamento_producao'] = array(
	'tableCaption' => 'Tb Orcamento Producao',
	'fieldLabels' => array(
		'orca_ID' => 'Orca ID',
		'data' => 'Data',
		'condicao' => 'Condicao',
		'status' => 'Status',
		'cliente' => 'Cliente',
		'pdto' => 'Pdto' 
	),
	'fieldTooltips' => array(
		'orca_ID' => '',
		'data' => '',
		'condicao' => '',
		'status' => '',
		'cliente' => '',
		'pdto' => '' 
	),
	'fieldPlaceholders' => array(
		'orca_ID' => '',
		'data' => '',
		'condicao' => '',
		'status' => '',
		'cliente' => '',
		'pdto' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>