<?php
global $runnerTableSettings;
$runnerTableSettings['tb_negociado'] = array(
	'name' => 'tb_negociado',
	'shortName' => 'tb_negociado',
	'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_negociado',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_negociado',
	'detailsBadgeColor' => '4169e1',
	'sql' => 'SELECT
	negocioID,
	pdtoID,
	`data`,
	pv_minimo,
	pv_negociado,
	ped_minimo,
	validade,
	mciD,
	condicao
FROM
	tb_negociado',
	'keyFields' => array( 
		'negocioID' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'negocioID' => array(
			'name' => 'negocioID',
			'goodName' => 'negocioID',
			'strField' => 'negocioID',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'negocioID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_negociado' 
		),
		'pdtoID' => array(
			'name' => 'pdtoID',
			'goodName' => 'pdtoID',
			'strField' => 'pdtoID',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'pdtoID',
			'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' 
				) 
			),
			'tableName' => 'tb_negociado',
			'viewLinkTable' => 'tb_produtos',
			'viewLinkLookup' => true 
		),
		'data' => array(
			'name' => 'data',
			'goodName' => 'data',
			'strField' => 'data',
			'index' => 3,
			'type' => 7,
			'sqlExpression' => '`data`',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'defaultValue' => 'Now()',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tb_negociado' 
		),
		'pv_minimo' => array(
			'name' => 'pv_minimo',
			'goodName' => 'pv_minimo',
			'strField' => 'pv_minimo',
			'index' => 4,
			'type' => 14,
			'sqlExpression' => 'pv_minimo',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Currency' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'required' => true 
				) 
			),
			'tableName' => 'tb_negociado' 
		),
		'pv_negociado' => array(
			'name' => 'pv_negociado',
			'goodName' => 'pv_negociado',
			'strField' => 'pv_negociado',
			'index' => 5,
			'type' => 14,
			'sqlExpression' => 'pv_negociado',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Currency' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'required' => true 
				) 
			),
			'tableName' => 'tb_negociado' 
		),
		'ped_minimo' => array(
			'name' => 'ped_minimo',
			'goodName' => 'ped_minimo',
			'strField' => 'ped_minimo',
			'index' => 6,
			'sqlExpression' => 'ped_minimo',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_negociado' 
		),
		'validade' => array(
			'name' => 'validade',
			'goodName' => 'validade',
			'strField' => 'validade',
			'index' => 7,
			'type' => 7,
			'sqlExpression' => 'validade',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'defaultValue' => 'Now()',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tb_negociado' 
		),
		'mciD' => array(
			'name' => 'mciD',
			'goodName' => 'mciD',
			'strField' => 'mciD',
			'index' => 8,
			'type' => 3,
			'sqlExpression' => 'mciD',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'tb_mcalculo',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'mcalcID',
					'lookupDisplayField' => 'mcalcID',
					'lookupOrderBy' => 'pdtoID',
					'lookupDependent' => true,
					'lookupDependentFields' => array( 
						array(
							'masterField' => 'pdtoID',
							'lookupField' => 'pdtoID' 
						) 
					) 
				) 
			),
			'tableName' => 'tb_negociado',
			'viewLinkTable' => 'tb_mcalculo',
			'viewLinkLookup' => true 
		),
		'condicao' => array(
			'name' => 'condicao',
			'goodName' => 'condicao',
			'strField' => 'condicao',
			'index' => 9,
			'sqlExpression' => 'condicao',
			'viewFormats' => array(
				'view' => array(
					'copyClipboard' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'tb_negociado' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	negocioID,
	pdtoID,
	`data`,
	pv_minimo,
	pv_negociado,
	ped_minimo,
	validade,
	mciD,
	condicao
FROM
	tb_negociado',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'negocioID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'negocioID' 
				),
				'encrypted' => false,
				'columnName' => 'negocioID' 
			),
			array(
				'sql' => 'pdtoID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'pdtoID' 
				),
				'encrypted' => false,
				'columnName' => 'pdtoID' 
			),
			array(
				'sql' => '`data`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'data' 
				),
				'encrypted' => false,
				'columnName' => 'data' 
			),
			array(
				'sql' => 'pv_minimo',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'pv_minimo' 
				),
				'encrypted' => false,
				'columnName' => 'pv_minimo' 
			),
			array(
				'sql' => 'pv_negociado',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'pv_negociado' 
				),
				'encrypted' => false,
				'columnName' => 'pv_negociado' 
			),
			array(
				'sql' => 'ped_minimo',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'ped_minimo' 
				),
				'encrypted' => false,
				'columnName' => 'ped_minimo' 
			),
			array(
				'sql' => 'validade',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'validade' 
				),
				'encrypted' => false,
				'columnName' => 'validade' 
			),
			array(
				'sql' => 'mciD',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'mciD' 
				),
				'encrypted' => false,
				'columnName' => 'mciD' 
			),
			array(
				'sql' => 'condicao',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_negociado',
					'name' => 'condicao' 
				),
				'encrypted' => false,
				'columnName' => 'condicao' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_negociado',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_negociado',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'negocioID',
						'pdtoID',
						'data',
						'pv_minimo',
						'pv_negociado',
						'ped_minimo',
						'validade',
						'mciD',
						'condicao' 
					),
					'name' => 'tb_negociado' 
				),
				'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 
			),
			array(
				'fieldIndex' => 8,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'negocioID,
	pdtoID,
	`data`,
	pv_minimo,
	pv_negociado,
	ped_minimo,
	validade,
	mciD,
	condicao',
		'fromListSql' => 'FROM
	tb_negociado',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_negociado',
	'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( 
			'negocioID',
			'pdtoID',
			'data',
			'pv_minimo',
			'pv_negociado',
			'ped_minimo',
			'validade',
			'mciD',
			'condicao' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'negocioID',
			'pdtoID',
			'data',
			'pv_minimo',
			'pv_negociado',
			'ped_minimo',
			'validade',
			'mciD',
			'condicao' 
		) 
	),
	'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_negociado'] = array(
	'tableCaption' => 'Tb Negociado',
	'fieldLabels' => array(
		'negocioID' => 'Neg ID',
		'pdtoID' => 'Pdto ID',
		'data' => 'Data',
		'pv_minimo' => 'Pv Minimo',
		'pv_negociado' => 'Pv Negociado',
		'ped_minimo' => 'Ped Minimo',
		'validade' => 'Validade',
		'mciD' => 'Mci D',
		'condicao' => 'Condicao' 
	),
	'fieldTooltips' => array(
		'negocioID' => '',
		'pdtoID' => '',
		'data' => '',
		'pv_minimo' => '',
		'pv_negociado' => '',
		'ped_minimo' => '',
		'validade' => '',
		'mciD' => '',
		'condicao' => '' 
	),
	'fieldPlaceholders' => array(
		'negocioID' => '',
		'pdtoID' => '',
		'data' => '',
		'pv_minimo' => '',
		'pv_negociado' => '',
		'ped_minimo' => '',
		'validade' => '',
		'mciD' => '',
		'condicao' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>