<?php
global $runnerTableSettings;
$runnerTableSettings['tb_mcalculo'] = array(
	'name' => 'tb_mcalculo',
	'shortName' => 'tb_mcalculo',
	'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_mcalculo',
	'afterAddAction' => 0,
	'afterAddDetail' => 'tb_mcalculo',
	'detailsBadgeColor' => '6b8e23',
	'sql' => 'SELECT
	mcalcID,
	pdtoID,
	`data`,
	versao,
	componente,
	material,
	consumo,
	quebra,
	tempo,
	txo,
	divisao,
	markup,
	Rat_modelagem,
	vigente
FROM
	tb_mcalculo',
	'keyFields' => array( 
		'mcalcID' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'mcalcID' => array(
			'name' => 'mcalcID',
			'goodName' => 'mcalcID',
			'strField' => 'mcalcID',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'mcalcID',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'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_mcalculo',
			'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',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'versao' => array(
			'name' => 'versao',
			'goodName' => 'versao',
			'strField' => 'versao',
			'index' => 4,
			'sqlExpression' => 'versao',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'componente' => array(
			'name' => 'componente',
			'goodName' => 'componente',
			'strField' => 'componente',
			'index' => 5,
			'sqlExpression' => 'componente',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'tb_componentes',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'componente',
					'lookupDisplayField' => 'componente',
					'lookupOrderBy' => 'componente' 
				) 
			),
			'tableName' => 'tb_mcalculo',
			'viewLinkTable' => 'tb_componentes',
			'viewLinkLookup' => true 
		),
		'material' => array(
			'name' => 'material',
			'goodName' => 'material',
			'strField' => 'material',
			'index' => 6,
			'type' => 3,
			'sqlExpression' => 'material',
			'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',
					'lookupDependentFields' => array( 
						array(
							'masterField' => 'componente',
							'lookupField' => '' 
						) 
					) 
				) 
			),
			'tableName' => 'tb_mcalculo',
			'viewLinkTable' => 'tb_materiais',
			'viewLinkLookup' => true 
		),
		'consumo' => array(
			'name' => 'consumo',
			'goodName' => 'consumo',
			'strField' => 'consumo',
			'index' => 7,
			'type' => 14,
			'sqlExpression' => 'consumo',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'quebra' => array(
			'name' => 'quebra',
			'goodName' => 'quebra',
			'strField' => 'quebra',
			'index' => 8,
			'type' => 14,
			'sqlExpression' => 'quebra',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 0,
					'lookupValues' => array( 
						'1,05',
						'1,06',
						'1,07',
						'1,08',
						'1,09',
						'1,10',
						'1,11',
						'1,12',
						'1,13',
						'1,14',
						'1,15',
						'1,20',
						'1,25',
						'1,30' 
					) 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'tempo' => array(
			'name' => 'tempo',
			'goodName' => 'tempo',
			'strField' => 'tempo',
			'index' => 9,
			'type' => 14,
			'sqlExpression' => 'tempo',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'txo' => array(
			'name' => 'txo',
			'goodName' => 'txo',
			'strField' => 'txo',
			'index' => 10,
			'type' => 14,
			'sqlExpression' => 'txo',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 0,
					'lookupValues' => array( 
						'1,05',
						'1,08',
						'1,10',
						'1,15',
						'1,20',
						'1,25',
						'1,30',
						'1,35',
						'1,40',
						'1,15',
						'1,50' 
					) 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'divisao' => array(
			'name' => 'divisao',
			'goodName' => 'divisao',
			'strField' => 'divisao',
			'index' => 11,
			'type' => 3,
			'sqlExpression' => 'divisao',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'tb_custominuto',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'custominID',
					'lookupDisplayField' => 'divisao',
					'lookupOrderBy' => 'divisao' 
				) 
			),
			'tableName' => 'tb_mcalculo',
			'viewLinkTable' => 'tb_custominuto',
			'viewLinkLookup' => true 
		),
		'markup' => array(
			'name' => 'markup',
			'goodName' => 'markup',
			'strField' => 'markup',
			'index' => 12,
			'type' => 3,
			'sqlExpression' => 'markup',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 2,
					'lookupTable' => 'dbw_mkps',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'mkpID',
					'lookupDisplayField' => 'cmkp',
					'lookupOrderBy' => 'Mlucro' 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'Rat_modelagem' => array(
			'name' => 'Rat_modelagem',
			'goodName' => 'Rat_modelagem',
			'strField' => 'Rat_modelagem',
			'index' => 13,
			'type' => 14,
			'sqlExpression' => 'Rat_modelagem',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Number' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		),
		'vigente' => array(
			'name' => 'vigente',
			'goodName' => 'vigente',
			'strField' => 'vigente',
			'index' => 14,
			'type' => 3,
			'sqlExpression' => 'vigente',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Checkbox' 
				) 
			),
			'tableName' => 'tb_mcalculo' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	mcalcID,
	pdtoID,
	`data`,
	versao,
	componente,
	material,
	consumo,
	quebra,
	tempo,
	txo,
	divisao,
	markup,
	Rat_modelagem,
	vigente
FROM
	tb_mcalculo',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'mcalcID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'mcalcID' 
				),
				'encrypted' => false,
				'columnName' => 'mcalcID' 
			),
			array(
				'sql' => 'pdtoID',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'pdtoID' 
				),
				'encrypted' => false,
				'columnName' => 'pdtoID' 
			),
			array(
				'sql' => '`data`',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'data' 
				),
				'encrypted' => false,
				'columnName' => 'data' 
			),
			array(
				'sql' => 'versao',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'versao' 
				),
				'encrypted' => false,
				'columnName' => 'versao' 
			),
			array(
				'sql' => 'componente',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'componente' 
				),
				'encrypted' => false,
				'columnName' => 'componente' 
			),
			array(
				'sql' => 'material',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'material' 
				),
				'encrypted' => false,
				'columnName' => 'material' 
			),
			array(
				'sql' => 'consumo',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'consumo' 
				),
				'encrypted' => false,
				'columnName' => 'consumo' 
			),
			array(
				'sql' => 'quebra',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'quebra' 
				),
				'encrypted' => false,
				'columnName' => 'quebra' 
			),
			array(
				'sql' => 'tempo',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'tempo' 
				),
				'encrypted' => false,
				'columnName' => 'tempo' 
			),
			array(
				'sql' => 'txo',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'txo' 
				),
				'encrypted' => false,
				'columnName' => 'txo' 
			),
			array(
				'sql' => 'divisao',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'divisao' 
				),
				'encrypted' => false,
				'columnName' => 'divisao' 
			),
			array(
				'sql' => 'markup',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'markup' 
				),
				'encrypted' => false,
				'columnName' => 'markup' 
			),
			array(
				'sql' => 'Rat_modelagem',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'Rat_modelagem' 
				),
				'encrypted' => false,
				'columnName' => 'Rat_modelagem' 
			),
			array(
				'sql' => 'vigente',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tb_mcalculo',
					'name' => 'vigente' 
				),
				'encrypted' => false,
				'columnName' => 'vigente' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tb_mcalculo',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tb_mcalculo',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'mcalcID',
						'pdtoID',
						'data',
						'versao',
						'componente',
						'material',
						'consumo',
						'quebra',
						'tempo',
						'txo',
						'divisao',
						'markup',
						'Rat_modelagem',
						'vigente' 
					),
					'name' => 'tb_mcalculo' 
				),
				'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 
			),
			array(
				'fieldIndex' => 11,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 12,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 13,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'mcalcID,
	pdtoID,
	`data`,
	versao,
	componente,
	material,
	consumo,
	quebra,
	tempo,
	txo,
	divisao,
	markup,
	Rat_modelagem,
	vigente',
		'fromListSql' => 'FROM
	tb_mcalculo',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tb_mcalculo',
	'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( 
			'mcalcID',
			'pdtoID',
			'data',
			'versao',
			'componente',
			'material',
			'consumo',
			'quebra',
			'tempo',
			'txo',
			'divisao',
			'markup',
			'Rat_modelagem',
			'vigente' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'mcalcID',
			'pdtoID',
			'data',
			'versao',
			'componente',
			'material',
			'consumo',
			'quebra',
			'tempo',
			'txo',
			'divisao',
			'markup',
			'Rat_modelagem',
			'vigente' 
		) 
	),
	'connId' => 'conn',
	'clickActions' => array(
		'row' => array(
			'action' => 'noaction',
			'openData' => array(
				'how' => 'popup',
				'page' => 'view' 
			) 
		),
		'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_mcalculo'] = array(
	'tableCaption' => 'Tb Mcalculo',
	'fieldLabels' => array(
		'mcalcID' => 'Mcalc ID',
		'pdtoID' => 'Pdto ID',
		'data' => 'Data',
		'versao' => 'Versao',
		'componente' => 'Componente',
		'material' => 'Material',
		'consumo' => 'Consumo',
		'quebra' => 'Quebra',
		'tempo' => 'Tempo',
		'txo' => 'Txo',
		'divisao' => 'Divisao',
		'markup' => 'Markup',
		'Rat_modelagem' => 'Rat Modelagem',
		'vigente' => 'Vigente' 
	),
	'fieldTooltips' => array(
		'mcalcID' => '',
		'pdtoID' => '',
		'data' => '',
		'versao' => '',
		'componente' => '',
		'material' => '',
		'consumo' => '',
		'quebra' => '',
		'tempo' => '',
		'txo' => '',
		'divisao' => '',
		'markup' => '',
		'Rat_modelagem' => '',
		'vigente' => '' 
	),
	'fieldPlaceholders' => array(
		'mcalcID' => '',
		'pdtoID' => '',
		'data' => '',
		'versao' => '',
		'componente' => '',
		'material' => '',
		'consumo' => '',
		'quebra' => '',
		'tempo' => '',
		'txo' => '',
		'divisao' => '',
		'markup' => '',
		'Rat_modelagem' => '',
		'vigente' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>