<?php
global $runnerTableSettings;
$runnerTableSettings['tb_pedidos'] = array(
	'name' => 'tb_pedidos',
	'shortName' => 'tb_pedidos',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'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',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'afterEditAction' => 0,
	'afterEditDetails' => 'tb_pedidos',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_pedidos',
	'detailsBadgeColor' => 'e07878',
	'sql' => 'SELECT
	pedID,
	clienteID,
	data_ped,
	entrega,
	status
FROM
	tb_pedidos',
	'keyFields' => array( 
		'pedID' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'pedID' => array(
			'name' => 'pedID',
			'goodName' => 'pedID',
			'strField' => 'pedID',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'pedID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_pedidos' 
		),
		'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' => 'tb_clientes',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'clienteID',
					'lookupDisplayField' => 'cliente',
					'lookupOrderBy' => 'cliente' 
				) 
			),
			'tableName' => 'tb_pedidos',
			'viewLinkTable' => 'tb_clientes',
			'viewLinkLookup' => true 
		),
		'data_ped' => array(
			'name' => 'data_ped',
			'goodName' => 'data_ped',
			'strField' => 'data_ped',
			'index' => 3,
			'type' => 7,
			'sqlExpression' => 'data_ped',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'defaultValue' => 'Now()',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tb_pedidos' 
		),
		'entrega' => array(
			'name' => 'entrega',
			'goodName' => 'entrega',
			'strField' => 'entrega',
			'index' => 4,
			'type' => 7,
			'sqlExpression' => 'entrega',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'defaultValue' => 'Now()',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tb_pedidos' 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 5,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 0,
					'lookupValues' => array( 
						'Cadastrado',
						'Modelagem',
						'Aprovacao',
						'Programado',
						'Em processo',
						'Expedicao',
						'Entregue',
						'Faturar',
						'Faturado',
						'Cancelado',
						'Estoque' 
					) 
				) 
			),
			'tableName' => 'tb_pedidos' 
		) 
	),
	'detailsTables' => array( 
		'tb_peditens' 
	),
	'query' => array(
		'sql' => 'SELECT
	pedID,
	clienteID,
	data_ped,
	entrega,
	status
FROM
	tb_pedidos',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'pedID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_pedidos',
					'name' => 'pedID' 
				),
				'encrypted' => false,
				'columnName' => 'pedID' 
			),
			array(
				'sql' => 'clienteID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_pedidos',
					'name' => 'clienteID' 
				),
				'encrypted' => false,
				'columnName' => 'clienteID' 
			),
			array(
				'sql' => 'data_ped',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_pedidos',
					'name' => 'data_ped' 
				),
				'encrypted' => false,
				'columnName' => 'data_ped' 
			),
			array(
				'sql' => 'entrega',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_pedidos',
					'name' => 'entrega' 
				),
				'encrypted' => false,
				'columnName' => 'entrega' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_pedidos',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_pedidos',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_pedidos',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'pedID',
						'clienteID',
						'data_ped',
						'entrega',
						'status' 
					),
					'name' => 'tb_pedidos' 
				),
				'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' => 'pedID,
	clienteID,
	data_ped,
	entrega,
	status',
		'fromListSql' => 'FROM
	tb_pedidos',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_pedidos',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'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',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'masterlist' => 'masterlist',
		'masterprint' => 'masterprint',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'pedID',
			'clienteID',
			'data_ped',
			'entrega',
			'status' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'pedID',
			'clienteID',
			'data_ped',
			'entrega',
			'status' 
		) 
	),
	'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_pedidos'] = array(
	'tableCaption' => 'Tb Pedidos',
	'fieldLabels' => array(
		'pedID' => 'Ped ID',
		'clienteID' => 'Cliente ID',
		'data_ped' => 'Data Ped',
		'entrega' => 'Entrega',
		'status' => 'Status' 
	),
	'fieldTooltips' => array(
		'pedID' => '',
		'clienteID' => '',
		'data_ped' => '',
		'entrega' => '',
		'status' => '' 
	),
	'fieldPlaceholders' => array(
		'pedID' => '',
		'clienteID' => '',
		'data_ped' => '',
		'entrega' => '',
		'status' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>