<?php
global $runnerTableSettings;
$runnerTableSettings['tb_cotacao_material'] = array(
	'name' => 'tb_cotacao_material',
	'shortName' => 'tb_cotacao_material',
	'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_cotacao_material',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_cotacao_material',
	'detailsBadgeColor' => 'cd853f',
	'sql' => 'SELECT
	cotamatiD,
	materialID,
	`data`,
	cotacao,
	vigente
FROM
	tb_cotacao_material',
	'keyFields' => array( 
		'cotamatiD' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'cotamatiD' => array(
			'name' => 'cotamatiD',
			'goodName' => 'cotamatiD',
			'strField' => 'cotamatiD',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'cotamatiD',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_cotacao_material' 
		),
		'materialID' => array(
			'name' => 'materialID',
			'goodName' => 'materialID',
			'strField' => 'materialID',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'materialID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'tb_materiais',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'materialID',
					'lookupDisplayField' => 'material',
					'lookupOrderBy' => 'material' 
				) 
			),
			'tableName' => 'tb_cotacao_material',
			'viewLinkTable' => 'tb_materiais',
			'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',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tb_cotacao_material' 
		),
		'cotacao' => array(
			'name' => 'cotacao',
			'goodName' => 'cotacao',
			'strField' => 'cotacao',
			'index' => 4,
			'type' => 14,
			'sqlExpression' => 'cotacao',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Currency' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'defaultValue' => '0' 
				) 
			),
			'tableName' => 'tb_cotacao_material' 
		),
		'vigente' => array(
			'name' => 'vigente',
			'goodName' => 'vigente',
			'strField' => 'vigente',
			'index' => 5,
			'type' => 3,
			'sqlExpression' => 'vigente',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Checkbox',
					'defaultValue' => '0' 
				) 
			),
			'tableName' => 'tb_cotacao_material' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	cotamatiD,
	materialID,
	`data`,
	cotacao,
	vigente
FROM
	tb_cotacao_material',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'cotamatiD',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_cotacao_material',
					'name' => 'cotamatiD' 
				),
				'encrypted' => false,
				'columnName' => 'cotamatiD' 
			),
			array(
				'sql' => 'materialID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_cotacao_material',
					'name' => 'materialID' 
				),
				'encrypted' => false,
				'columnName' => 'materialID' 
			),
			array(
				'sql' => '`data`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_cotacao_material',
					'name' => 'data' 
				),
				'encrypted' => false,
				'columnName' => 'data' 
			),
			array(
				'sql' => 'cotacao',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_cotacao_material',
					'name' => 'cotacao' 
				),
				'encrypted' => false,
				'columnName' => 'cotacao' 
			),
			array(
				'sql' => 'vigente',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_cotacao_material',
					'name' => 'vigente' 
				),
				'encrypted' => false,
				'columnName' => 'vigente' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_cotacao_material',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_cotacao_material',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'cotamatiD',
						'materialID',
						'data',
						'cotacao',
						'vigente' 
					),
					'name' => 'tb_cotacao_material' 
				),
				'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' => 'cotamatiD,
	materialID,
	`data`,
	cotacao,
	vigente',
		'fromListSql' => 'FROM
	tb_cotacao_material',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_cotacao_material',
	'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( 
			'cotamatiD',
			'materialID',
			'data',
			'cotacao',
			'vigente' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'cotamatiD',
			'materialID',
			'data',
			'cotacao',
			'vigente' 
		) 
	),
	'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_cotacao_material'] = array(
	'tableCaption' => 'Tb Cotacao Material',
	'fieldLabels' => array(
		'cotamatiD' => 'Cotamati D',
		'materialID' => 'Material ID',
		'data' => 'Data',
		'cotacao' => 'Cotacao',
		'vigente' => 'Vigente' 
	),
	'fieldTooltips' => array(
		'cotamatiD' => '',
		'materialID' => '',
		'data' => '',
		'cotacao' => '',
		'vigente' => '' 
	),
	'fieldPlaceholders' => array(
		'cotamatiD' => '',
		'materialID' => '',
		'data' => '',
		'cotacao' => '',
		'vigente' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>