<?php
require_once(getabspath("classes/cipherer.php"));
$tdatasenuc_aluno = array();
	$tdatasenuc_aluno[".NumberOfChars"] = 80; 
	$tdatasenuc_aluno[".ShortName"] = "senuc_aluno";
	$tdatasenuc_aluno[".OwnerID"] = "idnucleo";
	$tdatasenuc_aluno[".OriginalTable"] = "senuc_aluno";

//	field labels
$fieldLabelssenuc_aluno = array();
if(mlang_getcurrentlang()=="Portuguese(Brazil)")
{
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"] = array();
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"] = array();
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["id"] = "Id";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["id"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["idnucleo"] = "Núcleo";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["idnucleo"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["nome"] = "Nome";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["nome"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["endereco"] = "Endereco";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["endereco"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["cpf"] = "Cpf";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["cpf"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["rg"] = "Rg";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["rg"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["telefone"] = "Telefone";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["telefone"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["celular"] = "Celular";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["celular"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["operadora"] = "Operadora";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["operadora"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["cidade"] = "Cidade";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["cidade"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["estado"] = "Estado";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["estado"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["etnia"] = "Etnia";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["etnia"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["nascimento"] = "Nascimento";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["nascimento"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["nota_cidadania"] = "Nota Cidadania";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["nota_cidadania"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["renda"] = "Renda";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["renda"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["ingresso_nucleo"] = "Ingresso Nucleo";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["ingresso_nucleo"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["acoes_afirmativas"] = "Acoes Afirmativas";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["acoes_afirmativas"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["preparar_para"] = "Preparar Para";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["preparar_para"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["escolaridade"] = "Escolaridade";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["escolaridade"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["ativo"] = "Ativo";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["ativo"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["email"] = "Email";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["email"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["id_mdl"] = "Id Mdl";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["id_mdl"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["motivo"] = "Motivo";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["motivo"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["idregional"] = "Regional";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["idregional"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["ultimo_score"] = "Ultimo Score";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["ultimo_score"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["data_ultimo_score"] = "Data Ultimo Score";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["data_ultimo_score"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["score"] = "Score";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["score"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["id_turma"] = "Turma";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["id_turma"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["data_atualiza"] = "Data Atualiza";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["data_atualiza"] = "";
	$fieldLabelssenuc_aluno["Portuguese(Brazil)"]["id_aluno"] = "Id Aluno";
	$fieldToolTipssenuc_aluno["Portuguese(Brazil)"]["id_aluno"] = "";
	if (count($fieldToolTipssenuc_aluno["Portuguese(Brazil)"]))
		$tdatasenuc_aluno[".isUseToolTips"] = true;
}
	
	
	$tdatasenuc_aluno[".NCSearch"] = true;



$tdatasenuc_aluno[".shortTableName"] = "senuc_aluno";
$tdatasenuc_aluno[".nSecOptions"] = 1;
$tdatasenuc_aluno[".recsPerRowList"] = 1;
$tdatasenuc_aluno[".mainTableOwnerID"] = "idnucleo";
$tdatasenuc_aluno[".moveNext"] = 1;
$tdatasenuc_aluno[".nType"] = 0;

$tdatasenuc_aluno[".strOriginalTableName"] = "senuc_aluno";




$tdatasenuc_aluno[".showAddInPopup"] = true;

$tdatasenuc_aluno[".showEditInPopup"] = true;

$tdatasenuc_aluno[".showViewInPopup"] = true;

$tdatasenuc_aluno[".fieldsForRegister"] = array();

$tdatasenuc_aluno[".listAjax"] = false;

	$tdatasenuc_aluno[".audit"] = true;

	$tdatasenuc_aluno[".locking"] = false;

$tdatasenuc_aluno[".listIcons"] = true;
$tdatasenuc_aluno[".edit"] = true;
$tdatasenuc_aluno[".view"] = true;

$tdatasenuc_aluno[".exportTo"] = true;

$tdatasenuc_aluno[".printFriendly"] = true;


$tdatasenuc_aluno[".showSimpleSearchOptions"] = false;

$tdatasenuc_aluno[".showSearchPanel"] = true;

if (isMobile())
	$tdatasenuc_aluno[".isUseAjaxSuggest"] = false;
else 
	$tdatasenuc_aluno[".isUseAjaxSuggest"] = true;

$tdatasenuc_aluno[".rowHighlite"] = true;

// button handlers file names
$tdatasenuc_aluno[".isUsebuttonHandlers"] = true;

$tdatasenuc_aluno[".addPageEvents"] = true;

// use timepicker for search panel
$tdatasenuc_aluno[".isUseTimeForSearch"] = false;



$tdatasenuc_aluno[".useDetailsPreview"] = true;

$tdatasenuc_aluno[".allSearchFields"] = array();

$tdatasenuc_aluno[".allSearchFields"][] = "cpf";
$tdatasenuc_aluno[".allSearchFields"][] = "nome";
$tdatasenuc_aluno[".allSearchFields"][] = "nascimento";
$tdatasenuc_aluno[".allSearchFields"][] = "estado";
$tdatasenuc_aluno[".allSearchFields"][] = "cidade";
$tdatasenuc_aluno[".allSearchFields"][] = "email";
$tdatasenuc_aluno[".allSearchFields"][] = "telefone";
$tdatasenuc_aluno[".allSearchFields"][] = "celular";
$tdatasenuc_aluno[".allSearchFields"][] = "operadora";
$tdatasenuc_aluno[".allSearchFields"][] = "endereco";
$tdatasenuc_aluno[".allSearchFields"][] = "etnia";
$tdatasenuc_aluno[".allSearchFields"][] = "renda";
$tdatasenuc_aluno[".allSearchFields"][] = "escolaridade";
$tdatasenuc_aluno[".allSearchFields"][] = "id_turma";
$tdatasenuc_aluno[".allSearchFields"][] = "nota_cidadania";
$tdatasenuc_aluno[".allSearchFields"][] = "acoes_afirmativas";
$tdatasenuc_aluno[".allSearchFields"][] = "preparar_para";
$tdatasenuc_aluno[".allSearchFields"][] = "ingresso_nucleo";
$tdatasenuc_aluno[".allSearchFields"][] = "ativo";
$tdatasenuc_aluno[".allSearchFields"][] = "motivo";
$tdatasenuc_aluno[".allSearchFields"][] = "score";
$tdatasenuc_aluno[".allSearchFields"][] = "ultimo_score";
$tdatasenuc_aluno[".allSearchFields"][] = "data_ultimo_score";
$tdatasenuc_aluno[".allSearchFields"][] = "idnucleo";
$tdatasenuc_aluno[".allSearchFields"][] = "idregional";
$tdatasenuc_aluno[".allSearchFields"][] = "data_atualiza";

$tdatasenuc_aluno[".googleLikeFields"][] = "id";
$tdatasenuc_aluno[".googleLikeFields"][] = "idnucleo";
$tdatasenuc_aluno[".googleLikeFields"][] = "nome";
$tdatasenuc_aluno[".googleLikeFields"][] = "endereco";
$tdatasenuc_aluno[".googleLikeFields"][] = "email";
$tdatasenuc_aluno[".googleLikeFields"][] = "cpf";
$tdatasenuc_aluno[".googleLikeFields"][] = "rg";
$tdatasenuc_aluno[".googleLikeFields"][] = "telefone";
$tdatasenuc_aluno[".googleLikeFields"][] = "celular";
$tdatasenuc_aluno[".googleLikeFields"][] = "operadora";
$tdatasenuc_aluno[".googleLikeFields"][] = "cidade";
$tdatasenuc_aluno[".googleLikeFields"][] = "estado";
$tdatasenuc_aluno[".googleLikeFields"][] = "etnia";
$tdatasenuc_aluno[".googleLikeFields"][] = "nascimento";
$tdatasenuc_aluno[".googleLikeFields"][] = "nota_cidadania";
$tdatasenuc_aluno[".googleLikeFields"][] = "renda";
$tdatasenuc_aluno[".googleLikeFields"][] = "escolaridade";
$tdatasenuc_aluno[".googleLikeFields"][] = "preparar_para";
$tdatasenuc_aluno[".googleLikeFields"][] = "ingresso_nucleo";
$tdatasenuc_aluno[".googleLikeFields"][] = "acoes_afirmativas";
$tdatasenuc_aluno[".googleLikeFields"][] = "ativo";
$tdatasenuc_aluno[".googleLikeFields"][] = "motivo";
$tdatasenuc_aluno[".googleLikeFields"][] = "id_mdl";
$tdatasenuc_aluno[".googleLikeFields"][] = "idregional";
$tdatasenuc_aluno[".googleLikeFields"][] = "ultimo_score";
$tdatasenuc_aluno[".googleLikeFields"][] = "data_ultimo_score";
$tdatasenuc_aluno[".googleLikeFields"][] = "score";
$tdatasenuc_aluno[".googleLikeFields"][] = "id_turma";
$tdatasenuc_aluno[".googleLikeFields"][] = "data_atualiza";


$tdatasenuc_aluno[".advSearchFields"][] = "cpf";
$tdatasenuc_aluno[".advSearchFields"][] = "nome";
$tdatasenuc_aluno[".advSearchFields"][] = "nascimento";
$tdatasenuc_aluno[".advSearchFields"][] = "estado";
$tdatasenuc_aluno[".advSearchFields"][] = "cidade";
$tdatasenuc_aluno[".advSearchFields"][] = "email";
$tdatasenuc_aluno[".advSearchFields"][] = "telefone";
$tdatasenuc_aluno[".advSearchFields"][] = "celular";
$tdatasenuc_aluno[".advSearchFields"][] = "operadora";
$tdatasenuc_aluno[".advSearchFields"][] = "endereco";
$tdatasenuc_aluno[".advSearchFields"][] = "etnia";
$tdatasenuc_aluno[".advSearchFields"][] = "renda";
$tdatasenuc_aluno[".advSearchFields"][] = "escolaridade";
$tdatasenuc_aluno[".advSearchFields"][] = "id_turma";
$tdatasenuc_aluno[".advSearchFields"][] = "nota_cidadania";
$tdatasenuc_aluno[".advSearchFields"][] = "acoes_afirmativas";
$tdatasenuc_aluno[".advSearchFields"][] = "preparar_para";
$tdatasenuc_aluno[".advSearchFields"][] = "ingresso_nucleo";
$tdatasenuc_aluno[".advSearchFields"][] = "ativo";
$tdatasenuc_aluno[".advSearchFields"][] = "motivo";
$tdatasenuc_aluno[".advSearchFields"][] = "score";
$tdatasenuc_aluno[".advSearchFields"][] = "ultimo_score";
$tdatasenuc_aluno[".advSearchFields"][] = "data_ultimo_score";
$tdatasenuc_aluno[".advSearchFields"][] = "idnucleo";
$tdatasenuc_aluno[".advSearchFields"][] = "idregional";
$tdatasenuc_aluno[".advSearchFields"][] = "data_atualiza";

$tdatasenuc_aluno[".isTableType"] = "list";

	



// Access doesn't support subqueries from the same table as main
					


$tdatasenuc_aluno[".pageSize"] = 20;

$tstrOrderBy = "ORDER BY ativo DESC, nome, data_atualiza DESC";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatasenuc_aluno[".strOrderBy"] = $tstrOrderBy;

$tdatasenuc_aluno[".orderindexes"] = array();
$tdatasenuc_aluno[".orderindexes"][] = array(21, (0 ? "ASC" : "DESC"), "ativo");
$tdatasenuc_aluno[".orderindexes"][] = array(3, (1 ? "ASC" : "DESC"), "nome");
$tdatasenuc_aluno[".orderindexes"][] = array(29, (0 ? "ASC" : "DESC"), "data_atualiza");

$tdatasenuc_aluno[".sqlHead"] = "SELECT id,  idnucleo,  nome,  endereco,  email,  cpf,  rg,  telefone,  celular,  operadora,  cidade,  estado,  etnia,  nascimento,  nota_cidadania,  renda,  escolaridade,  preparar_para,  ingresso_nucleo,  acoes_afirmativas,  ativo,  motivo,  id_mdl,  idregional,  ultimo_score,  data_ultimo_score,  score,  id_turma,  data_atualiza AS data_atualiza";
$tdatasenuc_aluno[".sqlFrom"] = "FROM senuc_aluno";
$tdatasenuc_aluno[".sqlWhereExpr"] = "";
$tdatasenuc_aluno[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatasenuc_aluno[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatasenuc_aluno[".arrGroupsPerPage"] = $arrGPP;

$tableKeyssenuc_aluno = array();
$tableKeyssenuc_aluno[] = "id";
$tdatasenuc_aluno[".Keys"] = $tableKeyssenuc_aluno;

$tdatasenuc_aluno[".listFields"] = array();
$tdatasenuc_aluno[".listFields"][] = "cpf";
$tdatasenuc_aluno[".listFields"][] = "nome";
$tdatasenuc_aluno[".listFields"][] = "nascimento";
$tdatasenuc_aluno[".listFields"][] = "estado";
$tdatasenuc_aluno[".listFields"][] = "cidade";
$tdatasenuc_aluno[".listFields"][] = "email";
$tdatasenuc_aluno[".listFields"][] = "telefone";
$tdatasenuc_aluno[".listFields"][] = "celular";
$tdatasenuc_aluno[".listFields"][] = "operadora";
$tdatasenuc_aluno[".listFields"][] = "endereco";
$tdatasenuc_aluno[".listFields"][] = "etnia";
$tdatasenuc_aluno[".listFields"][] = "renda";
$tdatasenuc_aluno[".listFields"][] = "escolaridade";
$tdatasenuc_aluno[".listFields"][] = "id_turma";
$tdatasenuc_aluno[".listFields"][] = "nota_cidadania";
$tdatasenuc_aluno[".listFields"][] = "acoes_afirmativas";
$tdatasenuc_aluno[".listFields"][] = "preparar_para";
$tdatasenuc_aluno[".listFields"][] = "ingresso_nucleo";
$tdatasenuc_aluno[".listFields"][] = "ativo";
$tdatasenuc_aluno[".listFields"][] = "motivo";
$tdatasenuc_aluno[".listFields"][] = "score";
$tdatasenuc_aluno[".listFields"][] = "ultimo_score";
$tdatasenuc_aluno[".listFields"][] = "data_ultimo_score";
$tdatasenuc_aluno[".listFields"][] = "idnucleo";
$tdatasenuc_aluno[".listFields"][] = "idregional";
$tdatasenuc_aluno[".listFields"][] = "data_atualiza";

$tdatasenuc_aluno[".viewFields"] = array();
$tdatasenuc_aluno[".viewFields"][] = "cpf";
$tdatasenuc_aluno[".viewFields"][] = "nome";
$tdatasenuc_aluno[".viewFields"][] = "nascimento";
$tdatasenuc_aluno[".viewFields"][] = "estado";
$tdatasenuc_aluno[".viewFields"][] = "cidade";
$tdatasenuc_aluno[".viewFields"][] = "email";
$tdatasenuc_aluno[".viewFields"][] = "telefone";
$tdatasenuc_aluno[".viewFields"][] = "celular";
$tdatasenuc_aluno[".viewFields"][] = "operadora";
$tdatasenuc_aluno[".viewFields"][] = "endereco";
$tdatasenuc_aluno[".viewFields"][] = "etnia";
$tdatasenuc_aluno[".viewFields"][] = "renda";
$tdatasenuc_aluno[".viewFields"][] = "escolaridade";
$tdatasenuc_aluno[".viewFields"][] = "id_turma";
$tdatasenuc_aluno[".viewFields"][] = "nota_cidadania";
$tdatasenuc_aluno[".viewFields"][] = "acoes_afirmativas";
$tdatasenuc_aluno[".viewFields"][] = "preparar_para";
$tdatasenuc_aluno[".viewFields"][] = "ingresso_nucleo";
$tdatasenuc_aluno[".viewFields"][] = "ativo";
$tdatasenuc_aluno[".viewFields"][] = "motivo";
$tdatasenuc_aluno[".viewFields"][] = "score";
$tdatasenuc_aluno[".viewFields"][] = "ultimo_score";
$tdatasenuc_aluno[".viewFields"][] = "data_ultimo_score";
$tdatasenuc_aluno[".viewFields"][] = "idnucleo";
$tdatasenuc_aluno[".viewFields"][] = "idregional";
$tdatasenuc_aluno[".viewFields"][] = "data_atualiza";

$tdatasenuc_aluno[".addFields"] = array();
$tdatasenuc_aluno[".addFields"][] = "cpf";
$tdatasenuc_aluno[".addFields"][] = "nome";
$tdatasenuc_aluno[".addFields"][] = "email";
$tdatasenuc_aluno[".addFields"][] = "telefone";
$tdatasenuc_aluno[".addFields"][] = "celular";
$tdatasenuc_aluno[".addFields"][] = "operadora";
$tdatasenuc_aluno[".addFields"][] = "endereco";
$tdatasenuc_aluno[".addFields"][] = "etnia";
$tdatasenuc_aluno[".addFields"][] = "renda";
$tdatasenuc_aluno[".addFields"][] = "escolaridade";
$tdatasenuc_aluno[".addFields"][] = "id_turma";
$tdatasenuc_aluno[".addFields"][] = "preparar_para";
$tdatasenuc_aluno[".addFields"][] = "ingresso_nucleo";

$tdatasenuc_aluno[".inlineAddFields"] = array();

$tdatasenuc_aluno[".editFields"] = array();
$tdatasenuc_aluno[".editFields"][] = "nome";
$tdatasenuc_aluno[".editFields"][] = "email";
$tdatasenuc_aluno[".editFields"][] = "telefone";
$tdatasenuc_aluno[".editFields"][] = "celular";
$tdatasenuc_aluno[".editFields"][] = "operadora";
$tdatasenuc_aluno[".editFields"][] = "endereco";
$tdatasenuc_aluno[".editFields"][] = "etnia";
$tdatasenuc_aluno[".editFields"][] = "renda";
$tdatasenuc_aluno[".editFields"][] = "escolaridade";
$tdatasenuc_aluno[".editFields"][] = "id_turma";
$tdatasenuc_aluno[".editFields"][] = "preparar_para";
$tdatasenuc_aluno[".editFields"][] = "ativo";
$tdatasenuc_aluno[".editFields"][] = "motivo";

$tdatasenuc_aluno[".inlineEditFields"] = array();

$tdatasenuc_aluno[".exportFields"] = array();
$tdatasenuc_aluno[".exportFields"][] = "cpf";
$tdatasenuc_aluno[".exportFields"][] = "nome";
$tdatasenuc_aluno[".exportFields"][] = "nascimento";
$tdatasenuc_aluno[".exportFields"][] = "estado";
$tdatasenuc_aluno[".exportFields"][] = "cidade";
$tdatasenuc_aluno[".exportFields"][] = "email";
$tdatasenuc_aluno[".exportFields"][] = "telefone";
$tdatasenuc_aluno[".exportFields"][] = "celular";
$tdatasenuc_aluno[".exportFields"][] = "operadora";
$tdatasenuc_aluno[".exportFields"][] = "endereco";
$tdatasenuc_aluno[".exportFields"][] = "etnia";
$tdatasenuc_aluno[".exportFields"][] = "renda";
$tdatasenuc_aluno[".exportFields"][] = "escolaridade";
$tdatasenuc_aluno[".exportFields"][] = "id_turma";
$tdatasenuc_aluno[".exportFields"][] = "nota_cidadania";
$tdatasenuc_aluno[".exportFields"][] = "acoes_afirmativas";
$tdatasenuc_aluno[".exportFields"][] = "preparar_para";
$tdatasenuc_aluno[".exportFields"][] = "ingresso_nucleo";
$tdatasenuc_aluno[".exportFields"][] = "ativo";
$tdatasenuc_aluno[".exportFields"][] = "motivo";
$tdatasenuc_aluno[".exportFields"][] = "score";
$tdatasenuc_aluno[".exportFields"][] = "ultimo_score";
$tdatasenuc_aluno[".exportFields"][] = "data_ultimo_score";
$tdatasenuc_aluno[".exportFields"][] = "idnucleo";
$tdatasenuc_aluno[".exportFields"][] = "idregional";
$tdatasenuc_aluno[".exportFields"][] = "data_atualiza";

$tdatasenuc_aluno[".printFields"] = array();
$tdatasenuc_aluno[".printFields"][] = "cpf";
$tdatasenuc_aluno[".printFields"][] = "nome";
$tdatasenuc_aluno[".printFields"][] = "nascimento";
$tdatasenuc_aluno[".printFields"][] = "estado";
$tdatasenuc_aluno[".printFields"][] = "cidade";
$tdatasenuc_aluno[".printFields"][] = "email";
$tdatasenuc_aluno[".printFields"][] = "telefone";
$tdatasenuc_aluno[".printFields"][] = "celular";
$tdatasenuc_aluno[".printFields"][] = "operadora";
$tdatasenuc_aluno[".printFields"][] = "endereco";
$tdatasenuc_aluno[".printFields"][] = "etnia";
$tdatasenuc_aluno[".printFields"][] = "renda";
$tdatasenuc_aluno[".printFields"][] = "escolaridade";
$tdatasenuc_aluno[".printFields"][] = "id_turma";
$tdatasenuc_aluno[".printFields"][] = "nota_cidadania";
$tdatasenuc_aluno[".printFields"][] = "acoes_afirmativas";
$tdatasenuc_aluno[".printFields"][] = "preparar_para";
$tdatasenuc_aluno[".printFields"][] = "ingresso_nucleo";
$tdatasenuc_aluno[".printFields"][] = "ativo";
$tdatasenuc_aluno[".printFields"][] = "motivo";
$tdatasenuc_aluno[".printFields"][] = "score";
$tdatasenuc_aluno[".printFields"][] = "ultimo_score";
$tdatasenuc_aluno[".printFields"][] = "data_ultimo_score";
$tdatasenuc_aluno[".printFields"][] = "idnucleo";
$tdatasenuc_aluno[".printFields"][] = "idregional";
$tdatasenuc_aluno[".printFields"][] = "data_atualiza";

//	id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "id";
	$fdata["GoodName"] = "id";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Id"; 
	$fdata["FieldType"] = 3;
	
		$fdata["AutoInc"] = true;
	
		
		
		
		
		
		
		
		
		
		
		$fdata["strField"] = "id"; 
		$fdata["FullName"] = "id";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["id"] = $fdata;
//	idnucleo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "idnucleo";
	$fdata["GoodName"] = "idnucleo";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Núcleo"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idnucleo"; 
		$fdata["FullName"] = "idnucleo";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 2;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				$edata["LCType"] = 1;
			
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "nome";
	
		
	$edata["LookupTable"] = "senuc_nucleo";
	$edata["LookupOrderBy"] = "nome";
	
		
		
		
		$edata["FastType"] = true; 
	
		
				
	
	
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["idnucleo"] = $fdata;
//	nome
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "nome";
	$fdata["GoodName"] = "nome";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Nome"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "nome"; 
		$fdata["FullName"] = "nome";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=100";
	
		$edata["inputStyle"] = " width:300px;";
	$edata["controlWidth"] = 300;
	
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["nome"] = $fdata;
//	endereco
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "endereco";
	$fdata["GoodName"] = "endereco";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Endereco"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "endereco"; 
		$fdata["FullName"] = "endereco";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=100";
	
		$edata["inputStyle"] = " width:300px;";
	$edata["controlWidth"] = 300;
	
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["endereco"] = $fdata;
//	email
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "email";
	$fdata["GoodName"] = "email";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Email"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "email"; 
		$fdata["FullName"] = "email";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=100";
	
		$edata["inputStyle"] = " width:300px;";
	$edata["controlWidth"] = 300;
	
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Email");	
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["email"] = $fdata;
//	cpf
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "cpf";
	$fdata["GoodName"] = "cpf";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Cpf"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "cpf"; 
		$fdata["FullName"] = "cpf";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Custom");
	
		
		
		
			
		
		
		
		
		
		
		
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
		$edata["strEditMask"] = "999.999.999-99"; 

//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 1;
	$edata["autoCompleteFields"] = array();
	$edata["autoCompleteFields"][] = array('masterF'=>"nome", 'lookupF'=>"nome");
	$edata["autoCompleteFields"][] = array('masterF'=>"endereco", 'lookupF'=>"email");
	$edata["autoCompleteFields"][] = array('masterF'=>"email", 'lookupF'=>"email");
	$edata["autoCompleteFields"][] = array('masterF'=>"rg", 'lookupF'=>"cpf");
	$edata["autoCompleteFields"][] = array('masterF'=>"telefone", 'lookupF'=>"telefone");
	$edata["autoCompleteFields"][] = array('masterF'=>"celular", 'lookupF'=>"celular");
	$edata["autoCompleteFields"][] = array('masterF'=>"operadora", 'lookupF'=>"operadora");
	$edata["autoCompleteFields"][] = array('masterF'=>"cidade", 'lookupF'=>"cidade");
	$edata["autoCompleteFields"][] = array('masterF'=>"estado", 'lookupF'=>"estado");
	$edata["autoCompleteFields"][] = array('masterF'=>"etnia", 'lookupF'=>"etnia");
	$edata["autoCompleteFields"][] = array('masterF'=>"nascimento", 'lookupF'=>"nascimento");
	$edata["autoCompleteFields"][] = array('masterF'=>"nota_cidadania", 'lookupF'=>"nota_cidadania");
	$edata["autoCompleteFields"][] = array('masterF'=>"renda", 'lookupF'=>"renda_total");
	$edata["autoCompleteFields"][] = array('masterF'=>"preparar_para", 'lookupF'=>"como_conheceu");
				$edata["LCType"] = 1;
			
		
			
	$edata["LinkField"] = "cpf";
	$edata["LinkFieldType"] = 200;
	$edata["DisplayField"] = "cpf";
	
		
	$edata["LookupTable"] = "associados";
	$edata["LookupOrderBy"] = "";
	
		
		
		
		$edata["FastType"] = true; 
	
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["cpf"] = $fdata;
//	rg
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "rg";
	$fdata["GoodName"] = "rg";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Rg"; 
	$fdata["FieldType"] = 200;
	
		
		
		
		
		
		
		
		
		
		
		
		$fdata["strField"] = "rg"; 
		$fdata["FullName"] = "rg";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["rg"] = $fdata;
//	telefone
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "telefone";
	$fdata["GoodName"] = "telefone";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Telefone"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "telefone"; 
		$fdata["FullName"] = "telefone";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
		$edata["strEditMask"] = "(99)9999-9999"; 

//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["telefone"] = $fdata;
//	celular
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "celular";
	$fdata["GoodName"] = "celular";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Celular"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "celular"; 
		$fdata["FullName"] = "celular";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
		$edata["strEditMask"] = "(99)99999-9999"; 

//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["celular"] = $fdata;
//	operadora
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "operadora";
	$fdata["GoodName"] = "operadora";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Operadora"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "operadora"; 
		$fdata["FullName"] = "operadora";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "operadora";
	
		
	$edata["LookupTable"] = "operadora";
	$edata["LookupOrderBy"] = "operadora";
	
		
		
		
		
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["operadora"] = $fdata;
//	cidade
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "cidade";
	$fdata["GoodName"] = "cidade";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Cidade"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "cidade"; 
		$fdata["FullName"] = "cidade";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				$edata["LCType"] = 1;
			
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "nome";
	
		
	$edata["LookupTable"] = "tb_cidades";
	$edata["LookupOrderBy"] = "nome";
	
		
		
		
		$edata["FastType"] = true; 
	
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["cidade"] = $fdata;
//	estado
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "estado";
	$fdata["GoodName"] = "estado";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Estado"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "estado"; 
		$fdata["FullName"] = "estado";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "uf";
	
		
	$edata["LookupTable"] = "tb_estados";
	$edata["LookupOrderBy"] = "uf";
	
		
		
		
		
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["estado"] = $fdata;
//	etnia
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "etnia";
	$fdata["GoodName"] = "etnia";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Etnia"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "etnia"; 
		$fdata["FullName"] = "etnia";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "etnia";
	
		
	$edata["LookupTable"] = "etnia";
	$edata["LookupOrderBy"] = "etnia";
	
		
		
		
		
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["etnia"] = $fdata;
//	nascimento
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "nascimento";
	$fdata["GoodName"] = "nascimento";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Nascimento"; 
	$fdata["FieldType"] = 7;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "nascimento"; 
		$fdata["FullName"] = "nascimento";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Custom");
	
		
		
		
			
		
		
		
		
		
		
		
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Readonly");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["nascimento"] = $fdata;
//	nota_cidadania
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "nota_cidadania";
	$fdata["GoodName"] = "nota_cidadania";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Nota Cidadania"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "nota_cidadania"; 
		$fdata["FullName"] = "nota_cidadania";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Readonly");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["nota_cidadania"] = $fdata;
//	renda
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "renda";
	$fdata["GoodName"] = "renda";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Renda"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "renda"; 
		$fdata["FullName"] = "renda";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "renda";
	
		
	$edata["LookupTable"] = "renda";
	$edata["LookupOrderBy"] = "id";
	
		
		
		
		
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["renda"] = $fdata;
//	escolaridade
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 17;
	$fdata["strName"] = "escolaridade";
	$fdata["GoodName"] = "escolaridade";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Escolaridade"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "escolaridade"; 
		$fdata["FullName"] = "escolaridade";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "escolaridade";
	
		
	$edata["LookupTable"] = "escolaridade";
	$edata["LookupOrderBy"] = "id";
	
		
		
		
		
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["escolaridade"] = $fdata;
//	preparar_para
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 18;
	$fdata["strName"] = "preparar_para";
	$fdata["GoodName"] = "preparar_para";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Preparar Para"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "preparar_para"; 
		$fdata["FullName"] = "preparar_para";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				$edata["LCType"] = 3;
			
		$edata["HorizontalLookup"] = true;
	
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "preparar";
	
		
	$edata["LookupTable"] = "senuc_preparar";
	$edata["LookupOrderBy"] = "preparar";
	
		
		
		
		
		
		$edata["SimpleAdd"] = true;
			
	
	
		$edata["Multiselect"] = true; 
	$edata["SelectSize"] = 1;
//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["preparar_para"] = $fdata;
//	ingresso_nucleo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 19;
	$fdata["strName"] = "ingresso_nucleo";
	$fdata["GoodName"] = "ingresso_nucleo";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Ingresso Nucleo"; 
	$fdata["FieldType"] = 7;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "ingresso_nucleo"; 
		$fdata["FullName"] = "ingresso_nucleo";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Short Date");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Readonly");
	
		
		$edata["AutoUpdate"] = true; 
	
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["ingresso_nucleo"] = $fdata;
//	acoes_afirmativas
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 20;
	$fdata["strName"] = "acoes_afirmativas";
	$fdata["GoodName"] = "acoes_afirmativas";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Acoes Afirmativas"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "acoes_afirmativas"; 
		$fdata["FullName"] = "acoes_afirmativas";
	
		
		$fdata["CompatibilityMode"] = true; 
	
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["acoes_afirmativas"] = $fdata;
//	ativo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 21;
	$fdata["strName"] = "ativo";
	$fdata["GoodName"] = "ativo";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Ativo"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "ativo"; 
		$fdata["FullName"] = "ativo";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Checkbox");
	
		
		
		
			
		
		
		
		
		
		
		
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Checkbox");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["ativo"] = $fdata;
//	motivo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 22;
	$fdata["strName"] = "motivo";
	$fdata["GoodName"] = "motivo";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Motivo"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "motivo"; 
		$fdata["FullName"] = "motivo";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Custom");
	
		
		
		
			
		
		
		
		
		
		
		
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "motivo";
	
		
	$edata["LookupTable"] = "senuc_motivos";
	$edata["LookupOrderBy"] = "motivo";
	
		
		
		
		
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["motivo"] = $fdata;
//	id_mdl
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 23;
	$fdata["strName"] = "id_mdl";
	$fdata["GoodName"] = "id_mdl";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Id Mdl"; 
	$fdata["FieldType"] = 3;
	
		
		
		
		
		
		
		
		
		
		
		
		$fdata["strField"] = "id_mdl"; 
		$fdata["FullName"] = "id_mdl";
	
		
		
				
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["id_mdl"] = $fdata;
//	idregional
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 24;
	$fdata["strName"] = "idregional";
	$fdata["GoodName"] = "idregional";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Regional"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idregional"; 
		$fdata["FullName"] = "idregional";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 1;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "regional";
	
		
	$edata["LookupTable"] = "regionais";
	$edata["LookupOrderBy"] = "";
	
		
		
		
		
		
		$edata["SimpleAdd"] = true;
			
	
	
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["idregional"] = $fdata;
//	ultimo_score
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 25;
	$fdata["strName"] = "ultimo_score";
	$fdata["GoodName"] = "ultimo_score";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Ultimo Score"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "ultimo_score"; 
		$fdata["FullName"] = "ultimo_score";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Custom");
	
		
		
		
			
		
		
		
		
		
		
		
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["ultimo_score"] = $fdata;
//	data_ultimo_score
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 26;
	$fdata["strName"] = "data_ultimo_score";
	$fdata["GoodName"] = "data_ultimo_score";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Data Ultimo Score"; 
	$fdata["FieldType"] = 7;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "data_ultimo_score"; 
		$fdata["FullName"] = "data_ultimo_score";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Custom");
	
		
		
		
			
		
		
		
		
		
		
		
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Date");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		$edata["DateEditType"] = 13; 
	$edata["InitialYearFactor"] = 100; 
	$edata["LastYearFactor"] = 10; 
	
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
		
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["data_ultimo_score"] = $fdata;
//	score
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 27;
	$fdata["strName"] = "score";
	$fdata["GoodName"] = "score";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Score"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "score"; 
		$fdata["FullName"] = "score";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["score"] = $fdata;
//	id_turma
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 28;
	$fdata["strName"] = "id_turma";
	$fdata["GoodName"] = "id_turma";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Turma"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "id_turma"; 
		$fdata["FullName"] = "id_turma";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 2;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "turma";
	
		
	$edata["LookupTable"] = "senuc_turmas";
	$edata["LookupOrderBy"] = "";
	
		
		
		
		
		
				
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["id_turma"] = $fdata;
//	data_atualiza
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 29;
	$fdata["strName"] = "data_atualiza";
	$fdata["GoodName"] = "data_atualiza";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Data Atualiza"; 
	$fdata["FieldType"] = 135;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "data_atualiza"; 
		$fdata["FullName"] = "data_atualiza";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Short Date");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Date");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		$edata["DateEditType"] = 13; 
	$edata["InitialYearFactor"] = 100; 
	$edata["LastYearFactor"] = 10; 
	
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
		
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno["data_atualiza"] = $fdata;

	
$tables_data["senuc_aluno"]=&$tdatasenuc_aluno;
$field_labels["senuc_aluno"] = &$fieldLabelssenuc_aluno;
$fieldToolTips["senuc_aluno"] = &$fieldToolTipssenuc_aluno;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["senuc_aluno"] = array();
$dIndex = 1-1;
			$strOriginalDetailsTable="senuc_frequencias";
	$detailsParam["dDataSourceTable"]="senuc_frequencias";
	$detailsParam["dOriginalTable"]=$strOriginalDetailsTable;
	$detailsParam["dShortTable"]="senuc_frequencias";
	$detailsParam["masterKeys"]=array();
	$detailsParam["detailKeys"]=array();
	$detailsParam["dispChildCount"]= "1";
	$detailsParam["hideChild"]="1";
	$detailsParam["previewOnList"]= 0;
	$detailsParam["previewOnAdd"]= 0;
	$detailsParam["previewOnEdit"]= 0;
	$detailsParam["previewOnView"]= 0;
		
	$detailsTablesData["senuc_aluno"][$dIndex] = $detailsParam;
	
		
		$detailsTablesData["senuc_aluno"][$dIndex]["masterKeys"][]="cpf";
		$detailsTablesData["senuc_aluno"][$dIndex]["detailKeys"][]="cpf";

$dIndex = 2-1;
			$strOriginalDetailsTable="senuc_atividades_aluno";
	$detailsParam["dDataSourceTable"]="senuc_atividades_aluno";
	$detailsParam["dOriginalTable"]=$strOriginalDetailsTable;
	$detailsParam["dShortTable"]="senuc_atividades_aluno";
	$detailsParam["masterKeys"]=array();
	$detailsParam["detailKeys"]=array();
	$detailsParam["dispChildCount"]= "1";
	$detailsParam["hideChild"]="1";
	$detailsParam["previewOnList"]= 1;
	$detailsParam["previewOnAdd"]= 0;
	$detailsParam["previewOnEdit"]= 0;
	$detailsParam["previewOnView"]= 0;
		
	$detailsTablesData["senuc_aluno"][$dIndex] = $detailsParam;
	
		
		$detailsTablesData["senuc_aluno"][$dIndex]["masterKeys"][]="id";
		$detailsTablesData["senuc_aluno"][$dIndex]["detailKeys"][]="id_aluno";

$dIndex = 3-1;
			$strOriginalDetailsTable="senuc_plantoes_aluno";
	$detailsParam["dDataSourceTable"]="senuc_plantoes_aluno";
	$detailsParam["dOriginalTable"]=$strOriginalDetailsTable;
	$detailsParam["dShortTable"]="senuc_plantoes_aluno";
	$detailsParam["masterKeys"]=array();
	$detailsParam["detailKeys"]=array();
	$detailsParam["dispChildCount"]= "1";
	$detailsParam["hideChild"]="1";
	$detailsParam["previewOnList"]= 1;
	$detailsParam["previewOnAdd"]= 0;
	$detailsParam["previewOnEdit"]= 0;
	$detailsParam["previewOnView"]= 0;
		
	$detailsTablesData["senuc_aluno"][$dIndex] = $detailsParam;
	
		
		$detailsTablesData["senuc_aluno"][$dIndex]["masterKeys"][]="id";
		$detailsTablesData["senuc_aluno"][$dIndex]["detailKeys"][]="id_aluno";

$dIndex = 4-1;
			$strOriginalDetailsTable="senuc_contribuicoes";
	$detailsParam["dDataSourceTable"]="senuc_contribuicoes";
	$detailsParam["dOriginalTable"]=$strOriginalDetailsTable;
	$detailsParam["dShortTable"]="senuc_contribuicoes";
	$detailsParam["masterKeys"]=array();
	$detailsParam["detailKeys"]=array();
	$detailsParam["dispChildCount"]= "1";
	$detailsParam["hideChild"]="1";
	$detailsParam["previewOnList"]= 1;
	$detailsParam["previewOnAdd"]= 0;
	$detailsParam["previewOnEdit"]= 0;
	$detailsParam["previewOnView"]= 0;
		
	$detailsTablesData["senuc_aluno"][$dIndex] = $detailsParam;
	
		
		$detailsTablesData["senuc_aluno"][$dIndex]["masterKeys"][]="id";
		$detailsTablesData["senuc_aluno"][$dIndex]["detailKeys"][]="id_aluno";

$dIndex = 5-1;
			$strOriginalDetailsTable="senuc_descomplica";
	$detailsParam["dDataSourceTable"]="senuc_descomplica";
	$detailsParam["dOriginalTable"]=$strOriginalDetailsTable;
	$detailsParam["dShortTable"]="senuc_descomplica";
	$detailsParam["masterKeys"]=array();
	$detailsParam["detailKeys"]=array();
	$detailsParam["dispChildCount"]= "1";
	$detailsParam["hideChild"]="1";
	$detailsParam["previewOnList"]= 1;
	$detailsParam["previewOnAdd"]= 0;
	$detailsParam["previewOnEdit"]= 0;
	$detailsParam["previewOnView"]= 0;
		
	$detailsTablesData["senuc_aluno"][$dIndex] = $detailsParam;
	
		
		$detailsTablesData["senuc_aluno"][$dIndex]["masterKeys"][]="id";
		$detailsTablesData["senuc_aluno"][$dIndex]["detailKeys"][]="id_aluno";

	
// tables which are master tables for current table (detail)
$masterTablesData["senuc_aluno"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="senuc_nucleo";
	$masterParams["mDataSourceTable"]="senuc_nucleo";
	$masterParams["mOriginalTable"]= $strOriginalDetailsTable;
	$masterParams["mShortTable"]= "senuc_nucleo";
	$masterParams["masterKeys"]= array();
	$masterParams["detailKeys"]= array();
	$masterParams["dispChildCount"]= "1";
	$masterParams["hideChild"]= "1";
	$masterParams["dispInfo"]= "0";
	$masterParams["previewOnList"]= 1;
	$masterParams["previewOnAdd"]= 0;
	$masterParams["previewOnEdit"]= 0;
	$masterParams["previewOnView"]= 0;
	$masterTablesData["senuc_aluno"][$mIndex] = $masterParams;	
		$masterTablesData["senuc_aluno"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["senuc_aluno"][$mIndex]["detailKeys"][]="idnucleo";

$mIndex = 2-1;
			$strOriginalDetailsTable="senuc_nucleo";
	$masterParams["mDataSourceTable"]="nucleos_presenciais";
	$masterParams["mOriginalTable"]= $strOriginalDetailsTable;
	$masterParams["mShortTable"]= "nucleos_presenciais";
	$masterParams["masterKeys"]= array();
	$masterParams["detailKeys"]= array();
	$masterParams["dispChildCount"]= "1";
	$masterParams["hideChild"]= "1";
	$masterParams["dispInfo"]= "0";
	$masterParams["previewOnList"]= 1;
	$masterParams["previewOnAdd"]= 0;
	$masterParams["previewOnEdit"]= 0;
	$masterParams["previewOnView"]= 0;
	$masterTablesData["senuc_aluno"][$mIndex] = $masterParams;	
		$masterTablesData["senuc_aluno"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["senuc_aluno"][$mIndex]["detailKeys"][]="idnucleo";

$mIndex = 3-1;
			$strOriginalDetailsTable="senuc_nucleo";
	$masterParams["mDataSourceTable"]="nucleos_virtuais";
	$masterParams["mOriginalTable"]= $strOriginalDetailsTable;
	$masterParams["mShortTable"]= "nucleos_virtuais";
	$masterParams["masterKeys"]= array();
	$masterParams["detailKeys"]= array();
	$masterParams["dispChildCount"]= "1";
	$masterParams["hideChild"]= "1";
	$masterParams["dispInfo"]= "0";
	$masterParams["previewOnList"]= 1;
	$masterParams["previewOnAdd"]= 0;
	$masterParams["previewOnEdit"]= 0;
	$masterParams["previewOnView"]= 0;
	$masterTablesData["senuc_aluno"][$mIndex] = $masterParams;	
		$masterTablesData["senuc_aluno"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["senuc_aluno"][$mIndex]["detailKeys"][]="idnucleo";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










function createSqlQuery_senuc_aluno()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  idnucleo,  nome,  endereco,  email,  cpf,  rg,  telefone,  celular,  operadora,  cidade,  estado,  etnia,  nascimento,  nota_cidadania,  renda,  escolaridade,  preparar_para,  ingresso_nucleo,  acoes_afirmativas,  ativo,  motivo,  id_mdl,  idregional,  ultimo_score,  data_ultimo_score,  score,  id_turma,  data_atualiza AS data_atualiza";
$proto0["m_strFrom"] = "FROM senuc_aluno";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "ORDER BY ativo DESC, nome, data_atualiza DESC";
$proto0["m_strTail"] = "";
$proto0["cipherer"] = null;
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "senuc_aluno"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "idnucleo",
	"m_strTable" => "senuc_aluno"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "nome",
	"m_strTable" => "senuc_aluno"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "endereco",
	"m_strTable" => "senuc_aluno"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "email",
	"m_strTable" => "senuc_aluno"
));

$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "cpf",
	"m_strTable" => "senuc_aluno"
));

$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "rg",
	"m_strTable" => "senuc_aluno"
));

$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto0["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "telefone",
	"m_strTable" => "senuc_aluno"
));

$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto0["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "celular",
	"m_strTable" => "senuc_aluno"
));

$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto0["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "operadora",
	"m_strTable" => "senuc_aluno"
));

$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "";
$obj = new SQLFieldListItem($proto23);

$proto0["m_fieldlist"][]=$obj;
						$proto25=array();
			$obj = new SQLField(array(
	"m_strName" => "cidade",
	"m_strTable" => "senuc_aluno"
));

$proto25["m_expr"]=$obj;
$proto25["m_alias"] = "";
$obj = new SQLFieldListItem($proto25);

$proto0["m_fieldlist"][]=$obj;
						$proto27=array();
			$obj = new SQLField(array(
	"m_strName" => "estado",
	"m_strTable" => "senuc_aluno"
));

$proto27["m_expr"]=$obj;
$proto27["m_alias"] = "";
$obj = new SQLFieldListItem($proto27);

$proto0["m_fieldlist"][]=$obj;
						$proto29=array();
			$obj = new SQLField(array(
	"m_strName" => "etnia",
	"m_strTable" => "senuc_aluno"
));

$proto29["m_expr"]=$obj;
$proto29["m_alias"] = "";
$obj = new SQLFieldListItem($proto29);

$proto0["m_fieldlist"][]=$obj;
						$proto31=array();
			$obj = new SQLField(array(
	"m_strName" => "nascimento",
	"m_strTable" => "senuc_aluno"
));

$proto31["m_expr"]=$obj;
$proto31["m_alias"] = "";
$obj = new SQLFieldListItem($proto31);

$proto0["m_fieldlist"][]=$obj;
						$proto33=array();
			$obj = new SQLField(array(
	"m_strName" => "nota_cidadania",
	"m_strTable" => "senuc_aluno"
));

$proto33["m_expr"]=$obj;
$proto33["m_alias"] = "";
$obj = new SQLFieldListItem($proto33);

$proto0["m_fieldlist"][]=$obj;
						$proto35=array();
			$obj = new SQLField(array(
	"m_strName" => "renda",
	"m_strTable" => "senuc_aluno"
));

$proto35["m_expr"]=$obj;
$proto35["m_alias"] = "";
$obj = new SQLFieldListItem($proto35);

$proto0["m_fieldlist"][]=$obj;
						$proto37=array();
			$obj = new SQLField(array(
	"m_strName" => "escolaridade",
	"m_strTable" => "senuc_aluno"
));

$proto37["m_expr"]=$obj;
$proto37["m_alias"] = "";
$obj = new SQLFieldListItem($proto37);

$proto0["m_fieldlist"][]=$obj;
						$proto39=array();
			$obj = new SQLField(array(
	"m_strName" => "preparar_para",
	"m_strTable" => "senuc_aluno"
));

$proto39["m_expr"]=$obj;
$proto39["m_alias"] = "";
$obj = new SQLFieldListItem($proto39);

$proto0["m_fieldlist"][]=$obj;
						$proto41=array();
			$obj = new SQLField(array(
	"m_strName" => "ingresso_nucleo",
	"m_strTable" => "senuc_aluno"
));

$proto41["m_expr"]=$obj;
$proto41["m_alias"] = "";
$obj = new SQLFieldListItem($proto41);

$proto0["m_fieldlist"][]=$obj;
						$proto43=array();
			$obj = new SQLField(array(
	"m_strName" => "acoes_afirmativas",
	"m_strTable" => "senuc_aluno"
));

$proto43["m_expr"]=$obj;
$proto43["m_alias"] = "";
$obj = new SQLFieldListItem($proto43);

$proto0["m_fieldlist"][]=$obj;
						$proto45=array();
			$obj = new SQLField(array(
	"m_strName" => "ativo",
	"m_strTable" => "senuc_aluno"
));

$proto45["m_expr"]=$obj;
$proto45["m_alias"] = "";
$obj = new SQLFieldListItem($proto45);

$proto0["m_fieldlist"][]=$obj;
						$proto47=array();
			$obj = new SQLField(array(
	"m_strName" => "motivo",
	"m_strTable" => "senuc_aluno"
));

$proto47["m_expr"]=$obj;
$proto47["m_alias"] = "";
$obj = new SQLFieldListItem($proto47);

$proto0["m_fieldlist"][]=$obj;
						$proto49=array();
			$obj = new SQLField(array(
	"m_strName" => "id_mdl",
	"m_strTable" => "senuc_aluno"
));

$proto49["m_expr"]=$obj;
$proto49["m_alias"] = "";
$obj = new SQLFieldListItem($proto49);

$proto0["m_fieldlist"][]=$obj;
						$proto51=array();
			$obj = new SQLField(array(
	"m_strName" => "idregional",
	"m_strTable" => "senuc_aluno"
));

$proto51["m_expr"]=$obj;
$proto51["m_alias"] = "";
$obj = new SQLFieldListItem($proto51);

$proto0["m_fieldlist"][]=$obj;
						$proto53=array();
			$obj = new SQLField(array(
	"m_strName" => "ultimo_score",
	"m_strTable" => "senuc_aluno"
));

$proto53["m_expr"]=$obj;
$proto53["m_alias"] = "";
$obj = new SQLFieldListItem($proto53);

$proto0["m_fieldlist"][]=$obj;
						$proto55=array();
			$obj = new SQLField(array(
	"m_strName" => "data_ultimo_score",
	"m_strTable" => "senuc_aluno"
));

$proto55["m_expr"]=$obj;
$proto55["m_alias"] = "";
$obj = new SQLFieldListItem($proto55);

$proto0["m_fieldlist"][]=$obj;
						$proto57=array();
			$obj = new SQLField(array(
	"m_strName" => "score",
	"m_strTable" => "senuc_aluno"
));

$proto57["m_expr"]=$obj;
$proto57["m_alias"] = "";
$obj = new SQLFieldListItem($proto57);

$proto0["m_fieldlist"][]=$obj;
						$proto59=array();
			$obj = new SQLField(array(
	"m_strName" => "id_turma",
	"m_strTable" => "senuc_aluno"
));

$proto59["m_expr"]=$obj;
$proto59["m_alias"] = "";
$obj = new SQLFieldListItem($proto59);

$proto0["m_fieldlist"][]=$obj;
						$proto61=array();
			$obj = new SQLField(array(
	"m_strName" => "data_atualiza",
	"m_strTable" => "senuc_aluno"
));

$proto61["m_expr"]=$obj;
$proto61["m_alias"] = "data_atualiza";
$obj = new SQLFieldListItem($proto61);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto63=array();
$proto63["m_link"] = "SQLL_MAIN";
			$proto64=array();
$proto64["m_strName"] = "senuc_aluno";
$proto64["m_columns"] = array();
$proto64["m_columns"][] = "id";
$proto64["m_columns"][] = "idnucleo";
$proto64["m_columns"][] = "nome";
$proto64["m_columns"][] = "endereco";
$proto64["m_columns"][] = "email";
$proto64["m_columns"][] = "cpf";
$proto64["m_columns"][] = "rg";
$proto64["m_columns"][] = "telefone";
$proto64["m_columns"][] = "celular";
$proto64["m_columns"][] = "operadora";
$proto64["m_columns"][] = "cidade";
$proto64["m_columns"][] = "estado";
$proto64["m_columns"][] = "etnia";
$proto64["m_columns"][] = "nascimento";
$proto64["m_columns"][] = "nota_cidadania";
$proto64["m_columns"][] = "renda";
$proto64["m_columns"][] = "escolaridade";
$proto64["m_columns"][] = "preparar_para";
$proto64["m_columns"][] = "ingresso_nucleo";
$proto64["m_columns"][] = "turma";
$proto64["m_columns"][] = "acoes_afirmativas";
$proto64["m_columns"][] = "ativo";
$proto64["m_columns"][] = "motivo";
$proto64["m_columns"][] = "id_mdl";
$proto64["m_columns"][] = "idregional";
$proto64["m_columns"][] = "ultimo_score";
$proto64["m_columns"][] = "data_ultimo_score";
$proto64["m_columns"][] = "score";
$proto64["m_columns"][] = "senha";
$proto64["m_columns"][] = "foto";
$proto64["m_columns"][] = "aceite";
$proto64["m_columns"][] = "data_aceite";
$proto64["m_columns"][] = "curso_desejado";
$proto64["m_columns"][] = "atualizado";
$proto64["m_columns"][] = "data_atualiza";
$proto64["m_columns"][] = "id_turma";
$obj = new SQLTable($proto64);

$proto63["m_table"] = $obj;
$proto63["m_alias"] = "";
$proto65=array();
$proto65["m_sql"] = "";
$proto65["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto65["m_column"]=$obj;
$proto65["m_contained"] = array();
$proto65["m_strCase"] = "";
$proto65["m_havingmode"] = "0";
$proto65["m_inBrackets"] = "0";
$proto65["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto65);

$proto63["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto63);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
												$proto67=array();
						$obj = new SQLField(array(
	"m_strName" => "ativo",
	"m_strTable" => "senuc_aluno"
));

$proto67["m_column"]=$obj;
$proto67["m_bAsc"] = 0;
$proto67["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto67);

$proto0["m_orderby"][]=$obj;					
												$proto69=array();
						$obj = new SQLField(array(
	"m_strName" => "nome",
	"m_strTable" => "senuc_aluno"
));

$proto69["m_column"]=$obj;
$proto69["m_bAsc"] = 1;
$proto69["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto69);

$proto0["m_orderby"][]=$obj;					
												$proto71=array();
						$obj = new SQLField(array(
	"m_strName" => "data_atualiza",
	"m_strTable" => "senuc_aluno"
));

$proto71["m_column"]=$obj;
$proto71["m_bAsc"] = 0;
$proto71["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto71);

$proto0["m_orderby"][]=$obj;					
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_senuc_aluno = createSqlQuery_senuc_aluno();
																													$tdatasenuc_aluno[".sqlquery"] = $queryData_senuc_aluno;
	
if(isset($tdatasenuc_aluno["field2"])){
	$tdatasenuc_aluno["field2"]["LookupTable"] = "carscars_view";
	$tdatasenuc_aluno["field2"]["LookupOrderBy"] = "name";
	$tdatasenuc_aluno["field2"]["LookupType"] = 4;
	$tdatasenuc_aluno["field2"]["LinkField"] = "email";
	$tdatasenuc_aluno["field2"]["DisplayField"] = "name";
	$tdatasenuc_aluno[".hasCustomViewField"] = true;
}

include_once(getabspath("include/senuc_aluno_events.php"));
$tableEvents["senuc_aluno"] = new eventclass_senuc_aluno;
$tdatasenuc_aluno[".hasEvents"] = true;

$cipherer = new RunnerCipherer("senuc_aluno");

?>