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

//	field labels
$fieldLabelssenuc_aluno_acessos_descomplica = array();
if(mlang_getcurrentlang()=="Portuguese(Brazil)")
{
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"] = array();
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"] = array();
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["id"] = "Id";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["id"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["id_aluno"] = "Aluno";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["id_aluno"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["data"] = "Data";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["data"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["hora_entrada"] = "Hora Entrada";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["hora_entrada"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["hora_saida"] = "Hora Saida";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["hora_saida"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["tempo_on"] = "Tempo On";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["tempo_on"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["str_on"] = "Str On";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["str_on"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["ip"] = "Ip";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["ip"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["data_hora"] = "Data Hora";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["data_hora"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["Regional"] = "Regional";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["Regional"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["N_cleo"] = "Núcleo";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]["Núcleo"] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"][""] = "";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"][""] = "";
	$fieldLabelssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"][""] = "";
	$fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"][""] = "";
	if (count($fieldToolTipssenuc_aluno_acessos_descomplica["Portuguese(Brazil)"]))
		$tdatasenuc_aluno_acessos_descomplica[".isUseToolTips"] = true;
}
	
	
	$tdatasenuc_aluno_acessos_descomplica[".NCSearch"] = true;



$tdatasenuc_aluno_acessos_descomplica[".shortTableName"] = "senuc_aluno_acessos_descomplica";
$tdatasenuc_aluno_acessos_descomplica[".nSecOptions"] = 0;
$tdatasenuc_aluno_acessos_descomplica[".recsPerRowList"] = 1;
$tdatasenuc_aluno_acessos_descomplica[".mainTableOwnerID"] = "";
$tdatasenuc_aluno_acessos_descomplica[".moveNext"] = 1;
$tdatasenuc_aluno_acessos_descomplica[".nType"] = 0;

$tdatasenuc_aluno_acessos_descomplica[".strOriginalTableName"] = "senuc_aluno_acessos_descomplica";




$tdatasenuc_aluno_acessos_descomplica[".showAddInPopup"] = true;

$tdatasenuc_aluno_acessos_descomplica[".showEditInPopup"] = true;

$tdatasenuc_aluno_acessos_descomplica[".showViewInPopup"] = true;

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

$tdatasenuc_aluno_acessos_descomplica[".listAjax"] = false;

	$tdatasenuc_aluno_acessos_descomplica[".audit"] = false;

	$tdatasenuc_aluno_acessos_descomplica[".locking"] = false;

$tdatasenuc_aluno_acessos_descomplica[".listIcons"] = true;
$tdatasenuc_aluno_acessos_descomplica[".view"] = true;

$tdatasenuc_aluno_acessos_descomplica[".exportTo"] = true;

$tdatasenuc_aluno_acessos_descomplica[".printFriendly"] = true;


$tdatasenuc_aluno_acessos_descomplica[".showSimpleSearchOptions"] = false;

$tdatasenuc_aluno_acessos_descomplica[".showSearchPanel"] = true;

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

$tdatasenuc_aluno_acessos_descomplica[".rowHighlite"] = true;

// button handlers file names

$tdatasenuc_aluno_acessos_descomplica[".addPageEvents"] = false;

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




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

$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "Núcleo";
$tdatasenuc_aluno_acessos_descomplica[".allSearchFields"][] = "Regional";

$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "id";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "Regional";
$tdatasenuc_aluno_acessos_descomplica[".googleLikeFields"][] = "Núcleo";


$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "Núcleo";
$tdatasenuc_aluno_acessos_descomplica[".advSearchFields"][] = "Regional";

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

	



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



$tdatasenuc_aluno_acessos_descomplica[".pageSize"] = 20;

$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatasenuc_aluno_acessos_descomplica[".strOrderBy"] = $tstrOrderBy;

$tdatasenuc_aluno_acessos_descomplica[".orderindexes"] = array();

$tdatasenuc_aluno_acessos_descomplica[".sqlHead"] = "SELECT senuc_aluno_acessos_descomplica.id,  senuc_aluno_acessos_descomplica.id_aluno,  senuc_aluno_acessos_descomplica.`data`,  TIME(senuc_aluno_acessos_descomplica.hora_entrada) as hora_entrada,  TIME(senuc_aluno_acessos_descomplica.hora_saida)as hora_saida,  senuc_aluno_acessos_descomplica.tempo_on,  senuc_aluno_acessos_descomplica.str_on,  senuc_aluno_acessos_descomplica.ip,  senuc_aluno_acessos_descomplica.data_hora,  senuc_nucleo.idregional AS Regional,  senuc_aluno.idnucleo AS `Núcleo`";
$tdatasenuc_aluno_acessos_descomplica[".sqlFrom"] = "FROM senuc_aluno_acessos_descomplica  INNER JOIN senuc_aluno ON senuc_aluno.id = senuc_aluno_acessos_descomplica.id_aluno  INNER JOIN senuc_nucleo ON senuc_nucleo.id = senuc_aluno.idnucleo";
$tdatasenuc_aluno_acessos_descomplica[".sqlWhereExpr"] = "";
$tdatasenuc_aluno_acessos_descomplica[".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_acessos_descomplica[".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_acessos_descomplica[".arrGroupsPerPage"] = $arrGPP;

$tableKeyssenuc_aluno_acessos_descomplica = array();
$tableKeyssenuc_aluno_acessos_descomplica[] = "id";
$tdatasenuc_aluno_acessos_descomplica[".Keys"] = $tableKeyssenuc_aluno_acessos_descomplica;

$tdatasenuc_aluno_acessos_descomplica[".listFields"] = array();
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "Núcleo";
$tdatasenuc_aluno_acessos_descomplica[".listFields"][] = "Regional";

$tdatasenuc_aluno_acessos_descomplica[".viewFields"] = array();
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "Núcleo";
$tdatasenuc_aluno_acessos_descomplica[".viewFields"][] = "Regional";

$tdatasenuc_aluno_acessos_descomplica[".addFields"] = array();
$tdatasenuc_aluno_acessos_descomplica[".addFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".addFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".addFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".addFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".addFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".addFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".addFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".addFields"][] = "data_hora";

$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"] = array();
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "Núcleo";
$tdatasenuc_aluno_acessos_descomplica[".inlineAddFields"][] = "Regional";

$tdatasenuc_aluno_acessos_descomplica[".editFields"] = array();
$tdatasenuc_aluno_acessos_descomplica[".editFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".editFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".editFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".editFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".editFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".editFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".editFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".editFields"][] = "data_hora";

$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"] = array();
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "Núcleo";
$tdatasenuc_aluno_acessos_descomplica[".inlineEditFields"][] = "Regional";

$tdatasenuc_aluno_acessos_descomplica[".exportFields"] = array();
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "Núcleo";
$tdatasenuc_aluno_acessos_descomplica[".exportFields"][] = "Regional";

$tdatasenuc_aluno_acessos_descomplica[".printFields"] = array();
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "id_aluno";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "data";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "hora_entrada";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "hora_saida";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "tempo_on";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "str_on";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "ip";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "data_hora";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "Núcleo";
$tdatasenuc_aluno_acessos_descomplica[".printFields"][] = "Regional";

//	id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "id";
	$fdata["GoodName"] = "id";
	$fdata["ownerTable"] = "senuc_aluno_acessos_descomplica";
	$fdata["Label"] = "Id"; 
	$fdata["FieldType"] = 3;
	
		
		
		
		
		
		
		
		
		
		
		
		$fdata["strField"] = "id"; 
		$fdata["FullName"] = "senuc_aluno_acessos_descomplica.id";
	
		
		
				
				$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_acessos_descomplica["id"] = $fdata;
//	id_aluno
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "id_aluno";
	$fdata["GoodName"] = "id_aluno";
	$fdata["ownerTable"] = "senuc_aluno_acessos_descomplica";
	$fdata["Label"] = "Aluno"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "id_aluno"; 
		$fdata["FullName"] = "senuc_aluno_acessos_descomplica.id_aluno";
	
		
		
				$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"] = "nome";
	
		
	$edata["LookupTable"] = "senuc_aluno";
	$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_acessos_descomplica["id_aluno"] = $fdata;
//	data
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "data";
	$fdata["GoodName"] = "data";
	$fdata["ownerTable"] = "senuc_aluno_acessos_descomplica";
	$fdata["Label"] = "Data"; 
	$fdata["FieldType"] = 7;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "data"; 
		$fdata["FullName"] = "senuc_aluno_acessos_descomplica.`data`";
	
		
		
				$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["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		$edata["DateEditType"] = 13; 
	$edata["InitialYearFactor"] = 100; 
	$edata["LastYearFactor"] = 10; 
	
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno_acessos_descomplica["data"] = $fdata;
//	hora_entrada
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "hora_entrada";
	$fdata["GoodName"] = "hora_entrada";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = "Hora Entrada"; 
	$fdata["FieldType"] = 134;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "hora_entrada"; 
		$fdata["FullName"] = "TIME(senuc_aluno_acessos_descomplica.hora_entrada)";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Time");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Time");
	
		
		
	
//	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
	
		
				
				$hours = 24;
	$edata["FormatTimeAttrs"] = array("useTimePicker" => 0,
									  "hours" => $hours,
									  "minutes" => 1,
									  "showSeconds" => 0);
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno_acessos_descomplica["hora_entrada"] = $fdata;
//	hora_saida
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "hora_saida";
	$fdata["GoodName"] = "hora_saida";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = "Hora Saida"; 
	$fdata["FieldType"] = 134;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "hora_saida"; 
		$fdata["FullName"] = "TIME(senuc_aluno_acessos_descomplica.hora_saida)";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Time");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Time");
	
		
		
	
//	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
	
		
				
				$hours = 24;
	$edata["FormatTimeAttrs"] = array("useTimePicker" => 0,
									  "hours" => $hours,
									  "minutes" => 1,
									  "showSeconds" => 0);
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno_acessos_descomplica["hora_saida"] = $fdata;
//	tempo_on
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "tempo_on";
	$fdata["GoodName"] = "tempo_on";
	$fdata["ownerTable"] = "senuc_aluno_acessos_descomplica";
	$fdata["Label"] = "Tempo On"; 
	$fdata["FieldType"] = 134;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "tempo_on"; 
		$fdata["FullName"] = "senuc_aluno_acessos_descomplica.tempo_on";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Time");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Time");
	
		
		
	
//	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
	
		
				
				$hours = 24;
	$edata["FormatTimeAttrs"] = array("useTimePicker" => 0,
									  "hours" => $hours,
									  "minutes" => 1,
									  "showSeconds" => 0);
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno_acessos_descomplica["tempo_on"] = $fdata;
//	str_on
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "str_on";
	$fdata["GoodName"] = "str_on";
	$fdata["ownerTable"] = "senuc_aluno_acessos_descomplica";
	$fdata["Label"] = "Str On"; 
	$fdata["FieldType"] = 20;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "str_on"; 
		$fdata["FullName"] = "senuc_aluno_acessos_descomplica.str_on";
	
		
		
				$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"] = "";
			
		
//	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_acessos_descomplica["str_on"] = $fdata;
//	ip
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "ip";
	$fdata["GoodName"] = "ip";
	$fdata["ownerTable"] = "senuc_aluno_acessos_descomplica";
	$fdata["Label"] = "Ip"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "ip"; 
		$fdata["FullName"] = "senuc_aluno_acessos_descomplica.ip";
	
		
		
				$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"] = "";
			$edata["EditParams"].= " maxlength=20";
	
		
//	Begin validation
	$edata["validateAs"] = array();
		
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno_acessos_descomplica["ip"] = $fdata;
//	data_hora
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "data_hora";
	$fdata["GoodName"] = "data_hora";
	$fdata["ownerTable"] = "senuc_aluno_acessos_descomplica";
	$fdata["Label"] = "Data Hora"; 
	$fdata["FieldType"] = 135;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "data_hora"; 
		$fdata["FullName"] = "senuc_aluno_acessos_descomplica.data_hora";
	
		
		
				$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["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		$edata["DateEditType"] = 13; 
	$edata["InitialYearFactor"] = 100; 
	$edata["LastYearFactor"] = 10; 
	
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatasenuc_aluno_acessos_descomplica["data_hora"] = $fdata;
//	Regional
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "Regional";
	$fdata["GoodName"] = "Regional";
	$fdata["ownerTable"] = "senuc_nucleo";
	$fdata["Label"] = "Regional"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idregional"; 
		$fdata["FullName"] = "senuc_nucleo.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" => "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_acessos_descomplica["Regional"] = $fdata;
//	Núcleo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "Núcleo";
	$fdata["GoodName"] = "N_cleo";
	$fdata["ownerTable"] = "senuc_aluno";
	$fdata["Label"] = "Núcleo"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idnucleo"; 
		$fdata["FullName"] = "senuc_aluno.idnucleo";
	
		
		
				$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_acessos_descomplica["Núcleo"] = $fdata;

	
$tables_data["senuc_aluno_acessos_descomplica"]=&$tdatasenuc_aluno_acessos_descomplica;
$field_labels["senuc_aluno_acessos_descomplica"] = &$fieldLabelssenuc_aluno_acessos_descomplica;
$fieldToolTips["senuc_aluno_acessos_descomplica"] = &$fieldToolTipssenuc_aluno_acessos_descomplica;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["senuc_aluno_acessos_descomplica"] = array();
	
// tables which are master tables for current table (detail)
$masterTablesData["senuc_aluno_acessos_descomplica"] = array();

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

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










function createSqlQuery_senuc_aluno_acessos_descomplica()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "senuc_aluno_acessos_descomplica.id,  senuc_aluno_acessos_descomplica.id_aluno,  senuc_aluno_acessos_descomplica.`data`,  TIME(senuc_aluno_acessos_descomplica.hora_entrada) as hora_entrada,  TIME(senuc_aluno_acessos_descomplica.hora_saida)as hora_saida,  senuc_aluno_acessos_descomplica.tempo_on,  senuc_aluno_acessos_descomplica.str_on,  senuc_aluno_acessos_descomplica.ip,  senuc_aluno_acessos_descomplica.data_hora,  senuc_nucleo.idregional AS Regional,  senuc_aluno.idnucleo AS `Núcleo`";
$proto0["m_strFrom"] = "FROM senuc_aluno_acessos_descomplica  INNER JOIN senuc_aluno ON senuc_aluno.id = senuc_aluno_acessos_descomplica.id_aluno  INNER JOIN senuc_nucleo ON senuc_nucleo.id = senuc_aluno.idnucleo";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$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_acessos_descomplica"
));

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

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

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

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$proto12=array();
$proto12["m_functiontype"] = "SQLF_CUSTOM";
$proto12["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "senuc_aluno_acessos_descomplica.hora_entrada"
));

$proto12["m_arguments"][]=$obj;
$proto12["m_strFunctionName"] = "TIME";
$obj = new SQLFunctionCall($proto12);

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

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$proto15=array();
$proto15["m_functiontype"] = "SQLF_CUSTOM";
$proto15["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "senuc_aluno_acessos_descomplica.hora_saida"
));

$proto15["m_arguments"][]=$obj;
$proto15["m_strFunctionName"] = "TIME";
$obj = new SQLFunctionCall($proto15);

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto29=array();
$proto29["m_link"] = "SQLL_MAIN";
			$proto30=array();
$proto30["m_strName"] = "senuc_aluno_acessos_descomplica";
$proto30["m_columns"] = array();
$proto30["m_columns"][] = "id";
$proto30["m_columns"][] = "id_aluno";
$proto30["m_columns"][] = "data";
$proto30["m_columns"][] = "hora_entrada";
$proto30["m_columns"][] = "hora_saida";
$proto30["m_columns"][] = "tempo_on";
$proto30["m_columns"][] = "str_on";
$proto30["m_columns"][] = "ip";
$proto30["m_columns"][] = "data_hora";
$obj = new SQLTable($proto30);

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

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

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

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

$proto33["m_table"] = $obj;
$proto33["m_alias"] = "";
$proto35=array();
$proto35["m_sql"] = "senuc_aluno.id = senuc_aluno_acessos_descomplica.id_aluno";
$proto35["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "senuc_aluno"
));

$proto35["m_column"]=$obj;
$proto35["m_contained"] = array();
$proto35["m_strCase"] = "= senuc_aluno_acessos_descomplica.id_aluno";
$proto35["m_havingmode"] = "0";
$proto35["m_inBrackets"] = "0";
$proto35["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto35);

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

$proto0["m_fromlist"][]=$obj;
												$proto37=array();
$proto37["m_link"] = "SQLL_INNERJOIN";
			$proto38=array();
$proto38["m_strName"] = "senuc_nucleo";
$proto38["m_columns"] = array();
$proto38["m_columns"][] = "id";
$proto38["m_columns"][] = "idregional";
$proto38["m_columns"][] = "login";
$proto38["m_columns"][] = "senha";
$proto38["m_columns"][] = "nome";
$proto38["m_columns"][] = "responsavel";
$proto38["m_columns"][] = "endereco";
$proto38["m_columns"][] = "cep";
$proto38["m_columns"][] = "estado";
$proto38["m_columns"][] = "cidade";
$proto38["m_columns"][] = "tipo";
$proto38["m_columns"][] = "site";
$proto38["m_columns"][] = "email";
$proto38["m_columns"][] = "telefone";
$proto38["m_columns"][] = "celular";
$proto38["m_columns"][] = "operadora";
$proto38["m_columns"][] = "data_inicio";
$proto38["m_columns"][] = "observacao";
$proto38["m_columns"][] = "prepara_para";
$proto38["m_columns"][] = "funciona_em";
$proto38["m_columns"][] = "ativo";
$proto38["m_columns"][] = "motivo";
$proto38["m_columns"][] = "id_mdl";
$proto38["m_columns"][] = "meta_funcionamento";
$proto38["m_columns"][] = "meta_alunos";
$proto38["m_columns"][] = "limite_alunos_por_coordenador";
$proto38["m_columns"][] = "min_presenca_coordenador";
$proto38["m_columns"][] = "min_presenca_professor";
$proto38["m_columns"][] = "min_presenca_aluno";
$proto38["m_columns"][] = "min_atividades";
$proto38["m_columns"][] = "data_ultimo_score";
$proto38["m_columns"][] = "ultimo_score";
$obj = new SQLTable($proto38);

$proto37["m_table"] = $obj;
$proto37["m_alias"] = "";
$proto39=array();
$proto39["m_sql"] = "senuc_nucleo.id = senuc_aluno.idnucleo";
$proto39["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "senuc_nucleo"
));

$proto39["m_column"]=$obj;
$proto39["m_contained"] = array();
$proto39["m_strCase"] = "= senuc_aluno.idnucleo";
$proto39["m_havingmode"] = "0";
$proto39["m_inBrackets"] = "0";
$proto39["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto39);

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

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

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

$tableEvents["senuc_aluno_acessos_descomplica"] = new eventsBase;
$tdatasenuc_aluno_acessos_descomplica[".hasEvents"] = false;

$cipherer = new RunnerCipherer("senuc_aluno_acessos_descomplica");

?>