<?php
global $runnerTableSettings;
$runnerTableSettings['tb_contas_desp'] = array(
	'name' => 'tb_contas_desp',
	'shortName' => 'tb_contas_desp',
	'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_contas_desp',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_contas_desp',
	'detailsBadgeColor' => 'd2af80',
	'sql' => 'SELECT
	despID,
	categoria,
	conta,
	descricao,
	ativar
FROM
	tb_contas_desp',
	'keyFields' => array( 
		'despID' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'despID' => array(
			'name' => 'despID',
			'goodName' => 'despID',
			'strField' => 'despID',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'despID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_contas_desp' 
		),
		'categoria' => array(
			'name' => 'categoria',
			'goodName' => 'categoria',
			'strField' => 'categoria',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'categoria',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'tb_categ_despesas',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'catdespID',
					'lookupDisplayField' => 'categoria',
					'lookupOrderBy' => 'categoria' 
				) 
			),
			'tableName' => 'tb_contas_desp',
			'viewLinkTable' => 'tb_categ_despesas',
			'viewLinkLookup' => true 
		),
		'conta' => array(
			'name' => 'conta',
			'goodName' => 'conta',
			'strField' => 'conta',
			'index' => 3,
			'sqlExpression' => 'conta',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_contas_desp' 
		),
		'descricao' => array(
			'name' => 'descricao',
			'goodName' => 'descricao',
			'strField' => 'descricao',
			'index' => 4,
			'sqlExpression' => 'descricao',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'tb_contas_desp' 
		),
		'ativar' => array(
			'name' => 'ativar',
			'goodName' => 'ativar',
			'strField' => 'ativar',
			'index' => 5,
			'type' => 3,
			'sqlExpression' => 'ativar',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Checkbox',
					'defaultValue' => '0' 
				) 
			),
			'tableName' => 'tb_contas_desp' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	despID,
	categoria,
	conta,
	descricao,
	ativar
FROM
	tb_contas_desp',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'despID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_contas_desp',
					'name' => 'despID' 
				),
				'encrypted' => false,
				'columnName' => 'despID' 
			),
			array(
				'sql' => 'categoria',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_contas_desp',
					'name' => 'categoria' 
				),
				'encrypted' => false,
				'columnName' => 'categoria' 
			),
			array(
				'sql' => 'conta',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_contas_desp',
					'name' => 'conta' 
				),
				'encrypted' => false,
				'columnName' => 'conta' 
			),
			array(
				'sql' => 'descricao',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_contas_desp',
					'name' => 'descricao' 
				),
				'encrypted' => false,
				'columnName' => 'descricao' 
			),
			array(
				'sql' => 'ativar',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_contas_desp',
					'name' => 'ativar' 
				),
				'encrypted' => false,
				'columnName' => 'ativar' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_contas_desp',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_contas_desp',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'despID',
						'categoria',
						'conta',
						'descricao',
						'ativar' 
					),
					'name' => 'tb_contas_desp' 
				),
				'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' => 'despID,
	categoria,
	conta,
	descricao,
	ativar',
		'fromListSql' => 'FROM
	tb_contas_desp',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_contas_desp',
	'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( 
			'despID',
			'categoria',
			'conta',
			'descricao',
			'ativar' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'despID',
			'categoria',
			'conta',
			'descricao',
			'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_contas_desp'] = array(
	'tableCaption' => 'Tb Contas Desp',
	'fieldLabels' => array(
		'despID' => 'Desp ID',
		'categoria' => 'Categoria',
		'conta' => 'Conta',
		'descricao' => 'Descricao',
		'ativar' => 'Ativar' 
	),
	'fieldTooltips' => array(
		'despID' => '',
		'categoria' => '',
		'conta' => '',
		'descricao' => '',
		'ativar' => '' 
	),
	'fieldPlaceholders' => array(
		'despID' => '',
		'categoria' => '',
		'conta' => '',
		'descricao' => '',
		'ativar' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>