<?php
global $runnerTableSettings;
$runnerTableSettings['cmin_divisao view'] = array(
	'name' => 'cmin_divisao view',
	'type' => 1,
	'shortName' => 'tb_custominuto1',
	'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' => 'cmin_divisao view',
	'afterAddAction' => 0,
	'afterAddDetail' => 'cmin_divisao view',
	'detailsBadgeColor' => '3cb371',
	'sql' => 'SELECT
	custominID,
	divisao,
	salari_base,
	(salari_base *encargos) AS Despfolha,
	encargos,
	hrs_trab,
	funcionarios,
	atualizado,
	vigente,
	((salari_base * encargos)/ (hrs_trab * 60)) AS C_min,
	((salari_base * encargos)/ (hrs_trab )) AS C_hora
FROM
	tb_custominuto
',
	'keyFields' => array( 
		'custominID' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'custominID' => array(
			'name' => 'custominID',
			'goodName' => 'custominID',
			'strField' => 'custominID',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'custominID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_custominuto' 
		),
		'divisao' => array(
			'name' => 'divisao',
			'goodName' => 'divisao',
			'strField' => 'divisao',
			'index' => 2,
			'sqlExpression' => 'divisao',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_custominuto' 
		),
		'salari_base' => array(
			'name' => 'salari_base',
			'goodName' => 'salari_base',
			'strField' => 'salari_base',
			'index' => 3,
			'type' => 14,
			'sqlExpression' => 'salari_base',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_custominuto' 
		),
		'encargos' => array(
			'name' => 'encargos',
			'goodName' => 'encargos',
			'strField' => 'encargos',
			'index' => 5,
			'type' => 14,
			'sqlExpression' => 'encargos',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_custominuto' 
		),
		'hrs_trab' => array(
			'name' => 'hrs_trab',
			'goodName' => 'hrs_trab',
			'strField' => 'hrs_trab',
			'index' => 6,
			'type' => 14,
			'sqlExpression' => 'hrs_trab',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_custominuto' 
		),
		'funcionarios' => array(
			'name' => 'funcionarios',
			'goodName' => 'funcionarios',
			'strField' => 'funcionarios',
			'index' => 7,
			'type' => 14,
			'sqlExpression' => 'funcionarios',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_custominuto' 
		),
		'atualizado' => array(
			'name' => 'atualizado',
			'goodName' => 'atualizado',
			'strField' => 'atualizado',
			'index' => 8,
			'type' => 7,
			'sqlExpression' => 'atualizado',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tb_custominuto' 
		),
		'vigente' => array(
			'name' => 'vigente',
			'goodName' => 'vigente',
			'strField' => 'vigente',
			'index' => 9,
			'type' => 3,
			'sqlExpression' => 'vigente',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_custominuto' 
		),
		'Despfolha' => array(
			'name' => 'Despfolha',
			'goodName' => 'Despfolha',
			'strField' => 'Despfolha',
			'index' => 4,
			'type' => 14,
			'sqlExpression' => '(salari_base *encargos)',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => '' 
		),
		'C_min' => array(
			'name' => 'C_min',
			'goodName' => 'C_min',
			'strField' => 'C_min',
			'index' => 10,
			'type' => 14,
			'sqlExpression' => '((salari_base * encargos)/ (hrs_trab * 60))',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => '' 
		),
		'C_hora' => array(
			'name' => 'C_hora',
			'goodName' => 'C_hora',
			'strField' => 'C_hora',
			'index' => 11,
			'type' => 14,
			'sqlExpression' => '((salari_base * encargos)/ (hrs_trab ))',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => '' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	custominID,
	divisao,
	salari_base,
	(salari_base *encargos) AS Despfolha,
	encargos,
	hrs_trab,
	funcionarios,
	atualizado,
	vigente,
	((salari_base * encargos)/ (hrs_trab * 60)) AS C_min,
	((salari_base * encargos)/ (hrs_trab )) AS C_hora
FROM
	tb_custominuto
',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'custominID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_custominuto',
					'name' => 'custominID' 
				),
				'encrypted' => false,
				'columnName' => 'custominID' 
			),
			array(
				'sql' => 'divisao',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_custominuto',
					'name' => 'divisao' 
				),
				'encrypted' => false,
				'columnName' => 'divisao' 
			),
			array(
				'sql' => 'salari_base',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_custominuto',
					'name' => 'salari_base' 
				),
				'encrypted' => false,
				'columnName' => 'salari_base' 
			),
			array(
				'sql' => '(salari_base *encargos)',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => 'Despfolha',
				'expression' => array(
					'sql' => '(salari_base *encargos)',
					'parsed' => true,
					'type' => 'NonParsedEntity' 
				),
				'encrypted' => false,
				'columnName' => 'Despfolha' 
			),
			array(
				'sql' => 'encargos',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_custominuto',
					'name' => 'encargos' 
				),
				'encrypted' => false,
				'columnName' => 'encargos' 
			),
			array(
				'sql' => 'hrs_trab',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_custominuto',
					'name' => 'hrs_trab' 
				),
				'encrypted' => false,
				'columnName' => 'hrs_trab' 
			),
			array(
				'sql' => 'funcionarios',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_custominuto',
					'name' => 'funcionarios' 
				),
				'encrypted' => false,
				'columnName' => 'funcionarios' 
			),
			array(
				'sql' => 'atualizado',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_custominuto',
					'name' => 'atualizado' 
				),
				'encrypted' => false,
				'columnName' => 'atualizado' 
			),
			array(
				'sql' => 'vigente',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_custominuto',
					'name' => 'vigente' 
				),
				'encrypted' => false,
				'columnName' => 'vigente' 
			),
			array(
				'sql' => '((salari_base * encargos)/ (hrs_trab * 60))',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => 'C_min',
				'expression' => array(
					'sql' => '((salari_base * encargos)/ (hrs_trab * 60))',
					'parsed' => true,
					'type' => 'NonParsedEntity' 
				),
				'encrypted' => false,
				'columnName' => 'C_min' 
			),
			array(
				'sql' => '((salari_base * encargos)/ (hrs_trab ))',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => 'C_hora',
				'expression' => array(
					'sql' => '((salari_base * encargos)/ (hrs_trab ))',
					'parsed' => true,
					'type' => 'NonParsedEntity' 
				),
				'encrypted' => false,
				'columnName' => 'C_hora' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_custominuto',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_custominuto',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'custominID',
						'divisao',
						'salari_base',
						'custo_folha',
						'encargos',
						'hrs_trab',
						'funcionarios',
						'atualizado',
						'vigente' 
					),
					'name' => 'tb_custominuto' 
				),
				'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 
			),
			array(
				'fieldIndex' => 9,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 10,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'custominID,
	divisao,
	salari_base,
	(salari_base *encargos) AS Despfolha,
	encargos,
	hrs_trab,
	funcionarios,
	atualizado,
	vigente,
	((salari_base * encargos)/ (hrs_trab * 60)) AS C_min,
	((salari_base * encargos)/ (hrs_trab )) AS C_hora',
		'fromListSql' => 'FROM
	tb_custominuto',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_custominuto',
	'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( 
			'custominID',
			'divisao',
			'salari_base',
			'encargos',
			'hrs_trab',
			'funcionarios',
			'atualizado',
			'vigente',
			'Despfolha',
			'C_min',
			'C_hora' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'custominID',
			'divisao',
			'salari_base',
			'encargos',
			'hrs_trab',
			'funcionarios',
			'atualizado',
			'vigente',
			'Despfolha',
			'C_min',
			'C_hora' 
		) 
	),
	'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['cmin_divisao view'] = array(
	'tableCaption' => 'Cmin Divisao View',
	'fieldLabels' => array(
		'custominID' => 'Customin ID',
		'divisao' => 'Divisao',
		'salari_base' => 'Salari Base',
		'encargos' => 'Encargos',
		'hrs_trab' => 'Hrs Trab',
		'funcionarios' => 'Funcionarios',
		'atualizado' => 'Atualizado',
		'vigente' => 'Vigente',
		'Despfolha' => 'Despfolha',
		'C_min' => 'C Min',
		'C_hora' => 'C Hora' 
	),
	'fieldTooltips' => array(
		'custominID' => '',
		'divisao' => '',
		'salari_base' => '',
		'encargos' => '',
		'hrs_trab' => '',
		'funcionarios' => '',
		'atualizado' => '',
		'vigente' => '',
		'Despfolha' => '',
		'C_min' => '',
		'C_hora' => '' 
	),
	'fieldPlaceholders' => array(
		'custominID' => '',
		'divisao' => '',
		'salari_base' => '',
		'encargos' => '',
		'hrs_trab' => '',
		'funcionarios' => '',
		'atualizado' => '',
		'vigente' => '',
		'Despfolha' => '',
		'C_min' => '',
		'C_hora' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>