<?php



$tdatatb_peditens = array();
$tdatatb_peditens[".searchableFields"] = array();
$tdatatb_peditens[".ShortName"] = "tb_peditens";
$tdatatb_peditens[".OwnerID"] = "";
$tdatatb_peditens[".OriginalTable"] = "tb_peditens";


$tdatatb_peditens[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdatatb_peditens[".originalPagesByType"] = $tdatatb_peditens[".pagesByType"];
$tdatatb_peditens[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdatatb_peditens[".originalPages"] = $tdatatb_peditens[".pages"];
$tdatatb_peditens[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdatatb_peditens[".originalDefaultPages"] = $tdatatb_peditens[".defaultPages"];

//	field labels
$fieldLabelstb_peditens = array();
$fieldToolTipstb_peditens = array();
$pageTitlestb_peditens = array();
$placeHolderstb_peditens = array();

if(mlang_getcurrentlang()=="Portuguese(Brazil)")
{
	$fieldLabelstb_peditens["Portuguese(Brazil)"] = array();
	$fieldToolTipstb_peditens["Portuguese(Brazil)"] = array();
	$placeHolderstb_peditens["Portuguese(Brazil)"] = array();
	$pageTitlestb_peditens["Portuguese(Brazil)"] = array();
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["itemID"] = "Item ID";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["itemID"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["itemID"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["pedID"] = "Ped ID";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["pedID"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["pedID"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["pdtoID"] = "Pdto ID";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["pdtoID"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["pdtoID"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["v_unit"] = "V Unit";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["v_unit"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["v_unit"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["entrega"] = "Entrega";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["entrega"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["entrega"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["incluir"] = "Incluir";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["incluir"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["incluir"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["t0"] = "T0";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["t0"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["t0"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["t1"] = "T1";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["t1"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["t1"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["t2"] = "T2";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["t2"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["t2"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["t3"] = "T3";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["t3"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["t3"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["t4"] = "T4";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["t4"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["t4"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["t5"] = "T5";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["t5"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["t5"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["qtd"] = "Qtd";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["qtd"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["qtd"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["Subtotal"] = "Subtotal";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["Subtotal"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["Subtotal"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["cota_a"] = "Cota A";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["cota_a"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["cota_a"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["cota_b"] = "Cota B";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["cota_b"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["cota_b"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["cota_c"] = "Cota C";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["cota_c"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["cota_c"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["cota_d"] = "Cota D";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["cota_d"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["cota_d"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["categoria"] = "Categoria";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["categoria"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["categoria"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["componente"] = "Componente";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["componente"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["componente"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["status_item"] = "Status Item";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["status_item"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["status_item"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["faturado"] = "Faturado";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["faturado"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["faturado"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["data_fatura"] = "Data Fatura";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["data_fatura"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["data_fatura"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["nome_aux"] = "Nome Aux";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["nome_aux"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["nome_aux"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["g0"] = "G0";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["g0"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["g0"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["g1"] = "G1";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["g1"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["g1"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["g2"] = "G2";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["g2"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["g2"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["g3"] = "G3";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["g3"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["g3"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["g4"] = "G4";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["g4"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["g4"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["g5"] = "G5";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["g5"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["g5"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["Dias"] = "Dias";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["Dias"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["Dias"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["Horas"] = "Horas";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["Horas"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["Horas"] = "";
	$fieldLabelstb_peditens["Portuguese(Brazil)"]["txo"] = "Txo";
	$fieldToolTipstb_peditens["Portuguese(Brazil)"]["txo"] = "";
	$placeHolderstb_peditens["Portuguese(Brazil)"]["txo"] = "";
	if (count($fieldToolTipstb_peditens["Portuguese(Brazil)"]))
		$tdatatb_peditens[".isUseToolTips"] = true;
}


	$tdatatb_peditens[".NCSearch"] = true;


	$tdatatb_peditens[".scrollGridBody"] = true;

$tdatatb_peditens[".shortTableName"] = "tb_peditens";
$tdatatb_peditens[".nSecOptions"] = 0;

$tdatatb_peditens[".mainTableOwnerID"] = "";
$tdatatb_peditens[".entityType"] = 0;

$tdatatb_peditens[".strOriginalTableName"] = "tb_peditens";

	



$tdatatb_peditens[".showAddInPopup"] = false;

$tdatatb_peditens[".showEditInPopup"] = false;

$tdatatb_peditens[".showViewInPopup"] = false;

//page's base css files names
$popupPagesLayoutNames = array();
$tdatatb_peditens[".popupPagesLayoutNames"] = $popupPagesLayoutNames;


$tdatatb_peditens[".listAjax"] = false;
//	temporary
$tdatatb_peditens[".listAjax"] = false;

	$tdatatb_peditens[".audit"] = false;

	$tdatatb_peditens[".locking"] = false;


$pages = $tdatatb_peditens[".defaultPages"];

if( $pages[PAGE_EDIT] ) {
	$tdatatb_peditens[".edit"] = true;
	$tdatatb_peditens[".afterEditAction"] = 0;
	$tdatatb_peditens[".closePopupAfterEdit"] = 1;
	$tdatatb_peditens[".afterEditActionDetTable"] = "Detail tables not found!";
}

if( $pages[PAGE_ADD] ) {
$tdatatb_peditens[".add"] = true;
$tdatatb_peditens[".afterAddAction"] = 0;
$tdatatb_peditens[".closePopupAfterAdd"] = 1;
$tdatatb_peditens[".afterAddActionDetTable"] = "Detail tables not found!";
}

if( $pages[PAGE_LIST] ) {
	$tdatatb_peditens[".list"] = true;
}



$tdatatb_peditens[".strSortControlSettingsJSON"] = "";




if( $pages[PAGE_VIEW] ) {
$tdatatb_peditens[".view"] = true;
}

if( $pages[PAGE_IMPORT] ) {
$tdatatb_peditens[".import"] = true;
}

if( $pages[PAGE_EXPORT] ) {
$tdatatb_peditens[".exportTo"] = true;
}

if( $pages[PAGE_PRINT] ) {
$tdatatb_peditens[".printFriendly"] = true;
}



$tdatatb_peditens[".showSimpleSearchOptions"] = true; // temp fix #13449

// Allow Show/Hide Fields in GRID
$tdatatb_peditens[".allowShowHideFields"] = true; // temp fix #13449
//

// Allow Fields Reordering in GRID
$tdatatb_peditens[".allowFieldsReordering"] = true; // temp fix #13449
//

$tdatatb_peditens[".isUseAjaxSuggest"] = true;

$tdatatb_peditens[".rowHighlite"] = true;





$tdatatb_peditens[".ajaxCodeSnippetAdded"] = false;

$tdatatb_peditens[".buttonsAdded"] = false;

$tdatatb_peditens[".addPageEvents"] = false;

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


$tdatatb_peditens[".badgeColor"] = "6b8e23";


$tdatatb_peditens[".allSearchFields"] = array();
$tdatatb_peditens[".filterFields"] = array();
$tdatatb_peditens[".requiredSearchFields"] = array();

$tdatatb_peditens[".googleLikeFields"] = array();
$tdatatb_peditens[".googleLikeFields"][] = "itemID";
$tdatatb_peditens[".googleLikeFields"][] = "pedID";
$tdatatb_peditens[".googleLikeFields"][] = "pdtoID";
$tdatatb_peditens[".googleLikeFields"][] = "v_unit";
$tdatatb_peditens[".googleLikeFields"][] = "entrega";
$tdatatb_peditens[".googleLikeFields"][] = "incluir";
$tdatatb_peditens[".googleLikeFields"][] = "t0";
$tdatatb_peditens[".googleLikeFields"][] = "t1";
$tdatatb_peditens[".googleLikeFields"][] = "t2";
$tdatatb_peditens[".googleLikeFields"][] = "t3";
$tdatatb_peditens[".googleLikeFields"][] = "t4";
$tdatatb_peditens[".googleLikeFields"][] = "t5";
$tdatatb_peditens[".googleLikeFields"][] = "qtd";
$tdatatb_peditens[".googleLikeFields"][] = "Subtotal";
$tdatatb_peditens[".googleLikeFields"][] = "cota_a";
$tdatatb_peditens[".googleLikeFields"][] = "cota_b";
$tdatatb_peditens[".googleLikeFields"][] = "cota_c";
$tdatatb_peditens[".googleLikeFields"][] = "cota_d";
$tdatatb_peditens[".googleLikeFields"][] = "categoria";
$tdatatb_peditens[".googleLikeFields"][] = "componente";
$tdatatb_peditens[".googleLikeFields"][] = "status_item";
$tdatatb_peditens[".googleLikeFields"][] = "faturado";
$tdatatb_peditens[".googleLikeFields"][] = "data_fatura";
$tdatatb_peditens[".googleLikeFields"][] = "nome_aux";
$tdatatb_peditens[".googleLikeFields"][] = "g0";
$tdatatb_peditens[".googleLikeFields"][] = "g1";
$tdatatb_peditens[".googleLikeFields"][] = "g2";
$tdatatb_peditens[".googleLikeFields"][] = "g3";
$tdatatb_peditens[".googleLikeFields"][] = "g4";
$tdatatb_peditens[".googleLikeFields"][] = "g5";
$tdatatb_peditens[".googleLikeFields"][] = "Dias";
$tdatatb_peditens[".googleLikeFields"][] = "Horas";
$tdatatb_peditens[".googleLikeFields"][] = "txo";



$tdatatb_peditens[".tableType"] = "list";

$tdatatb_peditens[".printerPageOrientation"] = 0;
$tdatatb_peditens[".nPrinterPageScale"] = 100;

$tdatatb_peditens[".nPrinterSplitRecords"] = 40;

$tdatatb_peditens[".geocodingEnabled"] = false;










$tdatatb_peditens[".pageSize"] = 20;

$tdatatb_peditens[".warnLeavingPages"] = true;



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

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

$tdatatb_peditens[".sqlHead"] = "SELECT tb_peditens.itemID,  tb_peditens.pedID,  tb_peditens.pdtoID,  tb_peditens.v_unit,  tb_peditens.entrega,  tb_peditens.incluir,  tb_peditens.t0,  tb_peditens.t1,  tb_peditens.t2,  tb_peditens.t3,  tb_peditens.t4,  tb_peditens.t5,  (t0+t1+t2+t3+t4+t5) AS qtd,  (t0+t1+t2+t3+t4+t5)*v_unit AS Subtotal,  tb_peditens.cota_a,  tb_peditens.cota_b,  tb_peditens.cota_c,  tb_peditens.cota_d,  tb_produtos.categoria,  tb_componentes.componente,  tb_peditens.status_item,  tb_peditens.faturado,  tb_peditens.data_fatura,  tb_produtos.nome_aux,  grade_pdto.g0,  grade_pdto.g1,  grade_pdto.g2,  grade_pdto.g3,  grade_pdto.g4,  grade_pdto.g5,  ((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/480 as Dias,  ((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/60 as Horas,  dbw_resumo_calculo.txo";
$tdatatb_peditens[".sqlFrom"] = "FROM tb_peditens  INNER JOIN tb_produtos ON tb_peditens.pdtoID = tb_produtos.pdtoiD  INNER JOIN tb_componentes ON tb_produtos.categoria = tb_componentes.componenteID  INNER JOIN grade_pdto ON tb_peditens.pdtoID = grade_pdto.pdtoID  INNER JOIN dbw_resumo_calculo ON tb_peditens.pdtoID = dbw_resumo_calculo.pdtoID";
$tdatatb_peditens[".sqlWhereExpr"] = "";
$tdatatb_peditens[".sqlTail"] = "";

//fill array of tabs for list page
$arrGridTabs = array();
$arrGridTabs[] = array(
	'tabId' => "",
	'name' => "All data",
	'nameType' => 'Text',
	'where' => "",
	'showRowCount' => 0,
	'hideEmpty' => 0,
);
$tdatatb_peditens[".arrGridTabs"] = $arrGridTabs;









//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;
$tdatatb_peditens[".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;
$tdatatb_peditens[".arrGroupsPerPage"] = $arrGPP;

$tdatatb_peditens[".highlightSearchResults"] = true;

$tableKeystb_peditens = array();
$tableKeystb_peditens[] = "itemID";
$tdatatb_peditens[".Keys"] = $tableKeystb_peditens;


$tdatatb_peditens[".hideMobileList"] = array();




//	itemID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "itemID";
	$fdata["GoodName"] = "itemID";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","itemID");
	$fdata["FieldType"] = 3;

	
	
	
			

		$fdata["strField"] = "itemID";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.itemID";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["itemID"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "itemID";
//	pedID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "pedID";
	$fdata["GoodName"] = "pedID";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","pedID");
	$fdata["FieldType"] = 3;

	
	
	
			

		$fdata["strField"] = "pedID";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.pedID";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["pedID"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "pedID";
//	pdtoID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "pdtoID";
	$fdata["GoodName"] = "pdtoID";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","pdtoID");
	$fdata["FieldType"] = 3;

	
	
	
			

		$fdata["strField"] = "pdtoID";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.pdtoID";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Lookup wizard");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	

// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "tb_produtos";
		$edata["listPageId"] = "list";
		$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 2;

	
		
	$edata["LinkField"] = "pdtoiD";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "referencia";

	

	
	$edata["LookupOrderBy"] = "clienteID";

	
	
	
	
				//dependent dropdowns @deprecated data ?
	$edata["DependentLookups"] = array();
	$edata["DependentLookups"][] = "v_unit";

	
	
	
// End Lookup Settings


		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["pdtoID"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "pdtoID";
//	v_unit
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "v_unit";
	$fdata["GoodName"] = "v_unit";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","v_unit");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "v_unit";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.v_unit";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Lookup wizard");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	

// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "tb_negociado";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "pv_negociado";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "pv_negociado";

				$edata["LookupWhereCode"] = true;


	
	$edata["LookupOrderBy"] = "";

	
		$edata["UseCategory"] = true;
	$edata["categoryFields"] = array();
	$edata["categoryFields"][] = array( "main" => "pdtoID", "lookup" => "pdtoID" );

	
	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["v_unit"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "v_unit";
//	entrega
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "entrega";
	$fdata["GoodName"] = "entrega";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","entrega");
	$fdata["FieldType"] = 7;

	
	
	
			

		$fdata["strField"] = "entrega";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.entrega";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Short Date");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Date");

	
		$edata["weekdayMessage"] = array("message" => "Invalid week day", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 2;
	$edata["InitialYearFactor"] = 1;
	$edata["LastYearFactor"] = 10;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Equals", "More than", "Less than", "Between", EMPTY_SEARCH, NOT_EMPTY );
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["entrega"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "entrega";
//	incluir
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "incluir";
	$fdata["GoodName"] = "incluir";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","incluir");
	$fdata["FieldType"] = 3;

	
	
	
			

		$fdata["strField"] = "incluir";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.incluir";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Checkbox");

	
	
	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Checkbox");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["incluir"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "incluir";
//	t0
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "t0";
	$fdata["GoodName"] = "t0";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","t0");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "t0";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.t0";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["t0"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "t0";
//	t1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "t1";
	$fdata["GoodName"] = "t1";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","t1");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "t1";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.t1";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["t1"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "t1";
//	t2
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "t2";
	$fdata["GoodName"] = "t2";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","t2");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "t2";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.t2";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["t2"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "t2";
//	t3
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "t3";
	$fdata["GoodName"] = "t3";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","t3");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "t3";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.t3";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["t3"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "t3";
//	t4
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "t4";
	$fdata["GoodName"] = "t4";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","t4");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "t4";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.t4";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["t4"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "t4";
//	t5
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "t5";
	$fdata["GoodName"] = "t5";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","t5");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "t5";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.t5";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["t5"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "t5";
//	qtd
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "qtd";
	$fdata["GoodName"] = "qtd";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("tb_peditens","qtd");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "qtd";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(t0+t1+t2+t3+t4+t5)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["qtd"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "qtd";
//	Subtotal
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "Subtotal";
	$fdata["GoodName"] = "Subtotal";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("tb_peditens","Subtotal");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "Subtotal";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(t0+t1+t2+t3+t4+t5)*v_unit";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Currency");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["Subtotal"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "Subtotal";
//	cota_a
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "cota_a";
	$fdata["GoodName"] = "cota_a";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","cota_a");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "cota_a";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.cota_a";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["cota_a"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "cota_a";
//	cota_b
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "cota_b";
	$fdata["GoodName"] = "cota_b";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","cota_b");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "cota_b";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.cota_b";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["cota_b"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "cota_b";
//	cota_c
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 17;
	$fdata["strName"] = "cota_c";
	$fdata["GoodName"] = "cota_c";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","cota_c");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "cota_c";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.cota_c";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["cota_c"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "cota_c";
//	cota_d
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 18;
	$fdata["strName"] = "cota_d";
	$fdata["GoodName"] = "cota_d";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","cota_d");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "cota_d";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.cota_d";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["cota_d"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "cota_d";
//	categoria
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 19;
	$fdata["strName"] = "categoria";
	$fdata["GoodName"] = "categoria";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("tb_peditens","categoria");
	$fdata["FieldType"] = 3;

	
	
	
			

		$fdata["strField"] = "categoria";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_produtos.categoria";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["categoria"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "categoria";
//	componente
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 20;
	$fdata["strName"] = "componente";
	$fdata["GoodName"] = "componente";
	$fdata["ownerTable"] = "tb_componentes";
	$fdata["Label"] = GetFieldLabel("tb_peditens","componente");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "componente";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_componentes.componente";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["componente"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "componente";
//	status_item
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 21;
	$fdata["strName"] = "status_item";
	$fdata["GoodName"] = "status_item";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","status_item");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "status_item";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.status_item";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Lookup wizard");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	

// Begin Lookup settings
		$edata["LookupType"] = 0;
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
	
		$edata["LookupValues"] = array();
	$edata["LookupValues"][] = "Programado";
	$edata["LookupValues"][] = "Processo";
	$edata["LookupValues"][] = "Expedição ";
	$edata["LookupValues"][] = "Entregue";
	$edata["LookupValues"][] = "Cancelado";
	$edata["LookupValues"][] = "Estoque";

	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["status_item"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "status_item";
//	faturado
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 22;
	$fdata["strName"] = "faturado";
	$fdata["GoodName"] = "faturado";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","faturado");
	$fdata["FieldType"] = 3;

	
	
	
			

		$fdata["strField"] = "faturado";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.faturado";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Checkbox");

	
	
	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Checkbox");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
							
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["faturado"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "faturado";
//	data_fatura
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 23;
	$fdata["strName"] = "data_fatura";
	$fdata["GoodName"] = "data_fatura";
	$fdata["ownerTable"] = "tb_peditens";
	$fdata["Label"] = GetFieldLabel("tb_peditens","data_fatura");
	$fdata["FieldType"] = 7;

	
	
	
			

		$fdata["strField"] = "data_fatura";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_peditens.data_fatura";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Short Date");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Date");

	
		$edata["weekdayMessage"] = array("message" => "Invalid week day", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 2;
	$edata["InitialYearFactor"] = 1;
	$edata["LastYearFactor"] = 10;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Equals", "More than", "Less than", "Between", EMPTY_SEARCH, NOT_EMPTY );
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["data_fatura"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "data_fatura";
//	nome_aux
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 24;
	$fdata["strName"] = "nome_aux";
	$fdata["GoodName"] = "nome_aux";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("tb_peditens","nome_aux");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "nome_aux";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_produtos.nome_aux";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["nome_aux"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "nome_aux";
//	g0
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 25;
	$fdata["strName"] = "g0";
	$fdata["GoodName"] = "g0";
	$fdata["ownerTable"] = "grade_pdto";
	$fdata["Label"] = GetFieldLabel("tb_peditens","g0");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "g0";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "grade_pdto.g0";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["g0"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "g0";
//	g1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 26;
	$fdata["strName"] = "g1";
	$fdata["GoodName"] = "g1";
	$fdata["ownerTable"] = "grade_pdto";
	$fdata["Label"] = GetFieldLabel("tb_peditens","g1");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "g1";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "grade_pdto.g1";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["g1"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "g1";
//	g2
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 27;
	$fdata["strName"] = "g2";
	$fdata["GoodName"] = "g2";
	$fdata["ownerTable"] = "grade_pdto";
	$fdata["Label"] = GetFieldLabel("tb_peditens","g2");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "g2";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "grade_pdto.g2";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["g2"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "g2";
//	g3
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 28;
	$fdata["strName"] = "g3";
	$fdata["GoodName"] = "g3";
	$fdata["ownerTable"] = "grade_pdto";
	$fdata["Label"] = GetFieldLabel("tb_peditens","g3");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "g3";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "grade_pdto.g3";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["g3"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "g3";
//	g4
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 29;
	$fdata["strName"] = "g4";
	$fdata["GoodName"] = "g4";
	$fdata["ownerTable"] = "grade_pdto";
	$fdata["Label"] = GetFieldLabel("tb_peditens","g4");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "g4";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "grade_pdto.g4";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["g4"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "g4";
//	g5
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 30;
	$fdata["strName"] = "g5";
	$fdata["GoodName"] = "g5";
	$fdata["ownerTable"] = "grade_pdto";
	$fdata["Label"] = GetFieldLabel("tb_peditens","g5");
	$fdata["FieldType"] = 200;

	
	
	
			

		$fdata["strField"] = "g5";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "grade_pdto.g5";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["g5"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "g5";
//	Dias
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 31;
	$fdata["strName"] = "Dias";
	$fdata["GoodName"] = "Dias";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("tb_peditens","Dias");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "Dias";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/480";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["Dias"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "Dias";
//	Horas
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 32;
	$fdata["strName"] = "Horas";
	$fdata["GoodName"] = "Horas";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("tb_peditens","Horas");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "Horas";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/60";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 1;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["Horas"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "Horas";
//	txo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 33;
	$fdata["strName"] = "txo";
	$fdata["GoodName"] = "txo";
	$fdata["ownerTable"] = "dbw_resumo_calculo";
	$fdata["Label"] = GetFieldLabel("tb_peditens","txo");
	$fdata["FieldType"] = 14;

	
	
	
			

		$fdata["strField"] = "txo";

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "dbw_resumo_calculo.txo";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatatb_peditens["txo"] = $fdata;
		$tdatatb_peditens[".searchableFields"][] = "txo";


$tables_data["tb_peditens"]=&$tdatatb_peditens;
$field_labels["tb_peditens"] = &$fieldLabelstb_peditens;
$fieldToolTips["tb_peditens"] = &$fieldToolTipstb_peditens;
$placeHolders["tb_peditens"] = &$placeHolderstb_peditens;
$page_titles["tb_peditens"] = &$pageTitlestb_peditens;

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

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



	
				$strOriginalDetailsTable="tb_pedidos";
	$masterParams = array();
	$masterParams["mDataSourceTable"]="tb_pedidos";
	$masterParams["mOriginalTable"]= $strOriginalDetailsTable;
	$masterParams["mShortTable"]= "tb_pedidos";
	$masterParams["masterKeys"]= array();
	$masterParams["detailKeys"]= array();

	$masterParams["type"] = PAGE_LIST;
					$masterTablesData["tb_peditens"][0] = $masterParams;
				$masterTablesData["tb_peditens"][0]["masterKeys"] = array();
	$masterTablesData["tb_peditens"][0]["masterKeys"][]="pedID";
				$masterTablesData["tb_peditens"][0]["detailKeys"] = array();
	$masterTablesData["tb_peditens"][0]["detailKeys"][]="pedID";
		
// -----------------end  prepare master-details data arrays ------------------------------//


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










function createSqlQuery_tb_peditens()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "tb_peditens.itemID,  tb_peditens.pedID,  tb_peditens.pdtoID,  tb_peditens.v_unit,  tb_peditens.entrega,  tb_peditens.incluir,  tb_peditens.t0,  tb_peditens.t1,  tb_peditens.t2,  tb_peditens.t3,  tb_peditens.t4,  tb_peditens.t5,  (t0+t1+t2+t3+t4+t5) AS qtd,  (t0+t1+t2+t3+t4+t5)*v_unit AS Subtotal,  tb_peditens.cota_a,  tb_peditens.cota_b,  tb_peditens.cota_c,  tb_peditens.cota_d,  tb_produtos.categoria,  tb_componentes.componente,  tb_peditens.status_item,  tb_peditens.faturado,  tb_peditens.data_fatura,  tb_produtos.nome_aux,  grade_pdto.g0,  grade_pdto.g1,  grade_pdto.g2,  grade_pdto.g3,  grade_pdto.g4,  grade_pdto.g5,  ((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/480 as Dias,  ((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/60 as Horas,  dbw_resumo_calculo.txo";
$proto0["m_strFrom"] = "FROM tb_peditens  INNER JOIN tb_produtos ON tb_peditens.pdtoID = tb_produtos.pdtoiD  INNER JOIN tb_componentes ON tb_produtos.categoria = tb_componentes.componenteID  INNER JOIN grade_pdto ON tb_peditens.pdtoID = grade_pdto.pdtoID  INNER JOIN dbw_resumo_calculo ON tb_peditens.pdtoID = dbw_resumo_calculo.pdtoID";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto6=array();
			$obj = new SQLField(array(
	"m_strName" => "itemID",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto6["m_sql"] = "tb_peditens.itemID";
$proto6["m_srcTableName"] = "tb_peditens";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto8=array();
			$obj = new SQLField(array(
	"m_strName" => "pedID",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto8["m_sql"] = "tb_peditens.pedID";
$proto8["m_srcTableName"] = "tb_peditens";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);

$proto0["m_fieldlist"][]=$obj;
						$proto10=array();
			$obj = new SQLField(array(
	"m_strName" => "pdtoID",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto10["m_sql"] = "tb_peditens.pdtoID";
$proto10["m_srcTableName"] = "tb_peditens";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

$proto0["m_fieldlist"][]=$obj;
						$proto12=array();
			$obj = new SQLField(array(
	"m_strName" => "v_unit",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto12["m_sql"] = "tb_peditens.v_unit";
$proto12["m_srcTableName"] = "tb_peditens";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$obj = new SQLField(array(
	"m_strName" => "entrega",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto14["m_sql"] = "tb_peditens.entrega";
$proto14["m_srcTableName"] = "tb_peditens";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto16=array();
			$obj = new SQLField(array(
	"m_strName" => "incluir",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto16["m_sql"] = "tb_peditens.incluir";
$proto16["m_srcTableName"] = "tb_peditens";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

$proto0["m_fieldlist"][]=$obj;
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "t0",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto18["m_sql"] = "tb_peditens.t0";
$proto18["m_srcTableName"] = "tb_peditens";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

$proto0["m_fieldlist"][]=$obj;
						$proto20=array();
			$obj = new SQLField(array(
	"m_strName" => "t1",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto20["m_sql"] = "tb_peditens.t1";
$proto20["m_srcTableName"] = "tb_peditens";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto0["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "t2",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto22["m_sql"] = "tb_peditens.t2";
$proto22["m_srcTableName"] = "tb_peditens";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto0["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLField(array(
	"m_strName" => "t3",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto24["m_sql"] = "tb_peditens.t3";
$proto24["m_srcTableName"] = "tb_peditens";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

$proto0["m_fieldlist"][]=$obj;
						$proto26=array();
			$obj = new SQLField(array(
	"m_strName" => "t4",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto26["m_sql"] = "tb_peditens.t4";
$proto26["m_srcTableName"] = "tb_peditens";
$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "";
$obj = new SQLFieldListItem($proto26);

$proto0["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "t5",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto28["m_sql"] = "tb_peditens.t5";
$proto28["m_srcTableName"] = "tb_peditens";
$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "";
$obj = new SQLFieldListItem($proto28);

$proto0["m_fieldlist"][]=$obj;
						$proto30=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(t0+t1+t2+t3+t4+t5)"
));

$proto30["m_sql"] = "(t0+t1+t2+t3+t4+t5)";
$proto30["m_srcTableName"] = "tb_peditens";
$proto30["m_expr"]=$obj;
$proto30["m_alias"] = "qtd";
$obj = new SQLFieldListItem($proto30);

$proto0["m_fieldlist"][]=$obj;
						$proto32=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(t0+t1+t2+t3+t4+t5)*v_unit"
));

$proto32["m_sql"] = "(t0+t1+t2+t3+t4+t5)*v_unit";
$proto32["m_srcTableName"] = "tb_peditens";
$proto32["m_expr"]=$obj;
$proto32["m_alias"] = "Subtotal";
$obj = new SQLFieldListItem($proto32);

$proto0["m_fieldlist"][]=$obj;
						$proto34=array();
			$obj = new SQLField(array(
	"m_strName" => "cota_a",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto34["m_sql"] = "tb_peditens.cota_a";
$proto34["m_srcTableName"] = "tb_peditens";
$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "";
$obj = new SQLFieldListItem($proto34);

$proto0["m_fieldlist"][]=$obj;
						$proto36=array();
			$obj = new SQLField(array(
	"m_strName" => "cota_b",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto36["m_sql"] = "tb_peditens.cota_b";
$proto36["m_srcTableName"] = "tb_peditens";
$proto36["m_expr"]=$obj;
$proto36["m_alias"] = "";
$obj = new SQLFieldListItem($proto36);

$proto0["m_fieldlist"][]=$obj;
						$proto38=array();
			$obj = new SQLField(array(
	"m_strName" => "cota_c",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto38["m_sql"] = "tb_peditens.cota_c";
$proto38["m_srcTableName"] = "tb_peditens";
$proto38["m_expr"]=$obj;
$proto38["m_alias"] = "";
$obj = new SQLFieldListItem($proto38);

$proto0["m_fieldlist"][]=$obj;
						$proto40=array();
			$obj = new SQLField(array(
	"m_strName" => "cota_d",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto40["m_sql"] = "tb_peditens.cota_d";
$proto40["m_srcTableName"] = "tb_peditens";
$proto40["m_expr"]=$obj;
$proto40["m_alias"] = "";
$obj = new SQLFieldListItem($proto40);

$proto0["m_fieldlist"][]=$obj;
						$proto42=array();
			$obj = new SQLField(array(
	"m_strName" => "categoria",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "tb_peditens"
));

$proto42["m_sql"] = "tb_produtos.categoria";
$proto42["m_srcTableName"] = "tb_peditens";
$proto42["m_expr"]=$obj;
$proto42["m_alias"] = "";
$obj = new SQLFieldListItem($proto42);

$proto0["m_fieldlist"][]=$obj;
						$proto44=array();
			$obj = new SQLField(array(
	"m_strName" => "componente",
	"m_strTable" => "tb_componentes",
	"m_srcTableName" => "tb_peditens"
));

$proto44["m_sql"] = "tb_componentes.componente";
$proto44["m_srcTableName"] = "tb_peditens";
$proto44["m_expr"]=$obj;
$proto44["m_alias"] = "";
$obj = new SQLFieldListItem($proto44);

$proto0["m_fieldlist"][]=$obj;
						$proto46=array();
			$obj = new SQLField(array(
	"m_strName" => "status_item",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto46["m_sql"] = "tb_peditens.status_item";
$proto46["m_srcTableName"] = "tb_peditens";
$proto46["m_expr"]=$obj;
$proto46["m_alias"] = "";
$obj = new SQLFieldListItem($proto46);

$proto0["m_fieldlist"][]=$obj;
						$proto48=array();
			$obj = new SQLField(array(
	"m_strName" => "faturado",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto48["m_sql"] = "tb_peditens.faturado";
$proto48["m_srcTableName"] = "tb_peditens";
$proto48["m_expr"]=$obj;
$proto48["m_alias"] = "";
$obj = new SQLFieldListItem($proto48);

$proto0["m_fieldlist"][]=$obj;
						$proto50=array();
			$obj = new SQLField(array(
	"m_strName" => "data_fatura",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto50["m_sql"] = "tb_peditens.data_fatura";
$proto50["m_srcTableName"] = "tb_peditens";
$proto50["m_expr"]=$obj;
$proto50["m_alias"] = "";
$obj = new SQLFieldListItem($proto50);

$proto0["m_fieldlist"][]=$obj;
						$proto52=array();
			$obj = new SQLField(array(
	"m_strName" => "nome_aux",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "tb_peditens"
));

$proto52["m_sql"] = "tb_produtos.nome_aux";
$proto52["m_srcTableName"] = "tb_peditens";
$proto52["m_expr"]=$obj;
$proto52["m_alias"] = "";
$obj = new SQLFieldListItem($proto52);

$proto0["m_fieldlist"][]=$obj;
						$proto54=array();
			$obj = new SQLField(array(
	"m_strName" => "g0",
	"m_strTable" => "grade_pdto",
	"m_srcTableName" => "tb_peditens"
));

$proto54["m_sql"] = "grade_pdto.g0";
$proto54["m_srcTableName"] = "tb_peditens";
$proto54["m_expr"]=$obj;
$proto54["m_alias"] = "";
$obj = new SQLFieldListItem($proto54);

$proto0["m_fieldlist"][]=$obj;
						$proto56=array();
			$obj = new SQLField(array(
	"m_strName" => "g1",
	"m_strTable" => "grade_pdto",
	"m_srcTableName" => "tb_peditens"
));

$proto56["m_sql"] = "grade_pdto.g1";
$proto56["m_srcTableName"] = "tb_peditens";
$proto56["m_expr"]=$obj;
$proto56["m_alias"] = "";
$obj = new SQLFieldListItem($proto56);

$proto0["m_fieldlist"][]=$obj;
						$proto58=array();
			$obj = new SQLField(array(
	"m_strName" => "g2",
	"m_strTable" => "grade_pdto",
	"m_srcTableName" => "tb_peditens"
));

$proto58["m_sql"] = "grade_pdto.g2";
$proto58["m_srcTableName"] = "tb_peditens";
$proto58["m_expr"]=$obj;
$proto58["m_alias"] = "";
$obj = new SQLFieldListItem($proto58);

$proto0["m_fieldlist"][]=$obj;
						$proto60=array();
			$obj = new SQLField(array(
	"m_strName" => "g3",
	"m_strTable" => "grade_pdto",
	"m_srcTableName" => "tb_peditens"
));

$proto60["m_sql"] = "grade_pdto.g3";
$proto60["m_srcTableName"] = "tb_peditens";
$proto60["m_expr"]=$obj;
$proto60["m_alias"] = "";
$obj = new SQLFieldListItem($proto60);

$proto0["m_fieldlist"][]=$obj;
						$proto62=array();
			$obj = new SQLField(array(
	"m_strName" => "g4",
	"m_strTable" => "grade_pdto",
	"m_srcTableName" => "tb_peditens"
));

$proto62["m_sql"] = "grade_pdto.g4";
$proto62["m_srcTableName"] = "tb_peditens";
$proto62["m_expr"]=$obj;
$proto62["m_alias"] = "";
$obj = new SQLFieldListItem($proto62);

$proto0["m_fieldlist"][]=$obj;
						$proto64=array();
			$obj = new SQLField(array(
	"m_strName" => "g5",
	"m_strTable" => "grade_pdto",
	"m_srcTableName" => "tb_peditens"
));

$proto64["m_sql"] = "grade_pdto.g5";
$proto64["m_srcTableName"] = "tb_peditens";
$proto64["m_expr"]=$obj;
$proto64["m_alias"] = "";
$obj = new SQLFieldListItem($proto64);

$proto0["m_fieldlist"][]=$obj;
						$proto66=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/480"
));

$proto66["m_sql"] = "((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/480";
$proto66["m_srcTableName"] = "tb_peditens";
$proto66["m_expr"]=$obj;
$proto66["m_alias"] = "Dias";
$obj = new SQLFieldListItem($proto66);

$proto0["m_fieldlist"][]=$obj;
						$proto68=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/60"
));

$proto68["m_sql"] = "((dbw_resumo_calculo.tempo *dbw_resumo_calculo.txo) * (t0+t1+t2+t3+t4+t5))/60";
$proto68["m_srcTableName"] = "tb_peditens";
$proto68["m_expr"]=$obj;
$proto68["m_alias"] = "Horas";
$obj = new SQLFieldListItem($proto68);

$proto0["m_fieldlist"][]=$obj;
						$proto70=array();
			$obj = new SQLField(array(
	"m_strName" => "txo",
	"m_strTable" => "dbw_resumo_calculo",
	"m_srcTableName" => "tb_peditens"
));

$proto70["m_sql"] = "dbw_resumo_calculo.txo";
$proto70["m_srcTableName"] = "tb_peditens";
$proto70["m_expr"]=$obj;
$proto70["m_alias"] = "";
$obj = new SQLFieldListItem($proto70);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto72=array();
$proto72["m_link"] = "SQLL_MAIN";
			$proto73=array();
$proto73["m_strName"] = "tb_peditens";
$proto73["m_srcTableName"] = "tb_peditens";
$proto73["m_columns"] = array();
$proto73["m_columns"][] = "itemID";
$proto73["m_columns"][] = "pedID";
$proto73["m_columns"][] = "pdtoID";
$proto73["m_columns"][] = "componenteID";
$proto73["m_columns"][] = "v_unit";
$proto73["m_columns"][] = "entrega";
$proto73["m_columns"][] = "incluir";
$proto73["m_columns"][] = "t0";
$proto73["m_columns"][] = "t1";
$proto73["m_columns"][] = "t2";
$proto73["m_columns"][] = "t3";
$proto73["m_columns"][] = "t4";
$proto73["m_columns"][] = "t5";
$proto73["m_columns"][] = "cota_a";
$proto73["m_columns"][] = "cota_b";
$proto73["m_columns"][] = "cota_c";
$proto73["m_columns"][] = "cota_d";
$proto73["m_columns"][] = "status_item";
$proto73["m_columns"][] = "faturado";
$proto73["m_columns"][] = "data_fatura";
$obj = new SQLTable($proto73);

$proto72["m_table"] = $obj;
$proto72["m_sql"] = "tb_peditens";
$proto72["m_alias"] = "";
$proto72["m_srcTableName"] = "tb_peditens";
$proto74=array();
$proto74["m_sql"] = "";
$proto74["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
												$proto76=array();
$proto76["m_link"] = "SQLL_INNERJOIN";
			$proto77=array();
$proto77["m_strName"] = "tb_produtos";
$proto77["m_srcTableName"] = "tb_peditens";
$proto77["m_columns"] = array();
$proto77["m_columns"][] = "pdtoiD";
$proto77["m_columns"][] = "clienteID";
$proto77["m_columns"][] = "referencia";
$proto77["m_columns"][] = "nome_aux";
$proto77["m_columns"][] = "categoria";
$proto77["m_columns"][] = "status";
$proto77["m_columns"][] = "foto";
$proto77["m_columns"][] = "ficha_tec";
$obj = new SQLTable($proto77);

$proto76["m_table"] = $obj;
$proto76["m_sql"] = "INNER JOIN tb_produtos ON tb_peditens.pdtoID = tb_produtos.pdtoiD";
$proto76["m_alias"] = "";
$proto76["m_srcTableName"] = "tb_peditens";
$proto78=array();
$proto78["m_sql"] = "tb_peditens.pdtoID = tb_produtos.pdtoiD";
$proto78["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "pdtoID",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto78["m_column"]=$obj;
$proto78["m_contained"] = array();
$proto78["m_strCase"] = "= tb_produtos.pdtoiD";
$proto78["m_havingmode"] = false;
$proto78["m_inBrackets"] = false;
$proto78["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto78);

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

$proto0["m_fromlist"][]=$obj;
												$proto80=array();
$proto80["m_link"] = "SQLL_INNERJOIN";
			$proto81=array();
$proto81["m_strName"] = "tb_componentes";
$proto81["m_srcTableName"] = "tb_peditens";
$proto81["m_columns"] = array();
$proto81["m_columns"][] = "componenteID";
$proto81["m_columns"][] = "componente";
$proto81["m_columns"][] = "material";
$proto81["m_columns"][] = "metrica";
$proto81["m_columns"][] = "ativar";
$obj = new SQLTable($proto81);

$proto80["m_table"] = $obj;
$proto80["m_sql"] = "INNER JOIN tb_componentes ON tb_produtos.categoria = tb_componentes.componenteID";
$proto80["m_alias"] = "";
$proto80["m_srcTableName"] = "tb_peditens";
$proto82=array();
$proto82["m_sql"] = "tb_produtos.categoria = tb_componentes.componenteID";
$proto82["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "categoria",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "tb_peditens"
));

$proto82["m_column"]=$obj;
$proto82["m_contained"] = array();
$proto82["m_strCase"] = "= tb_componentes.componenteID";
$proto82["m_havingmode"] = false;
$proto82["m_inBrackets"] = false;
$proto82["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto82);

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

$proto0["m_fromlist"][]=$obj;
												$proto84=array();
$proto84["m_link"] = "SQLL_INNERJOIN";
			$proto85=array();
$proto85["m_strName"] = "grade_pdto";
$proto85["m_srcTableName"] = "tb_peditens";
$proto85["m_columns"] = array();
$proto85["m_columns"][] = "gradeID";
$proto85["m_columns"][] = "g0";
$proto85["m_columns"][] = "g1";
$proto85["m_columns"][] = "g2";
$proto85["m_columns"][] = "g3";
$proto85["m_columns"][] = "g4";
$proto85["m_columns"][] = "g5";
$proto85["m_columns"][] = "vigente";
$proto85["m_columns"][] = "pdtoID";
$obj = new SQLTable($proto85);

$proto84["m_table"] = $obj;
$proto84["m_sql"] = "INNER JOIN grade_pdto ON tb_peditens.pdtoID = grade_pdto.pdtoID";
$proto84["m_alias"] = "";
$proto84["m_srcTableName"] = "tb_peditens";
$proto86=array();
$proto86["m_sql"] = "tb_peditens.pdtoID = grade_pdto.pdtoID";
$proto86["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "pdtoID",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto86["m_column"]=$obj;
$proto86["m_contained"] = array();
$proto86["m_strCase"] = "= grade_pdto.pdtoID";
$proto86["m_havingmode"] = false;
$proto86["m_inBrackets"] = false;
$proto86["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto86);

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

$proto0["m_fromlist"][]=$obj;
												$proto88=array();
$proto88["m_link"] = "SQLL_INNERJOIN";
			$proto89=array();
$proto89["m_strName"] = "dbw_resumo_calculo";
$proto89["m_srcTableName"] = "tb_peditens";
$proto89["m_columns"] = array();
$proto89["m_columns"][] = "mcalcID";
$proto89["m_columns"][] = "pdtoID";
$proto89["m_columns"][] = "data";
$proto89["m_columns"][] = "versao";
$proto89["m_columns"][] = "componente";
$proto89["m_columns"][] = "material";
$proto89["m_columns"][] = "consumo";
$proto89["m_columns"][] = "quebra";
$proto89["m_columns"][] = "tempo";
$proto89["m_columns"][] = "txo";
$proto89["m_columns"][] = "divisao";
$proto89["m_columns"][] = "CMO";
$proto89["m_columns"][] = "CMat";
$proto89["m_columns"][] = "vigente";
$proto89["m_columns"][] = "GGF";
$proto89["m_columns"][] = "RModel";
$proto89["m_columns"][] = "markup";
$proto89["m_columns"][] = "Mlucro";
$proto89["m_columns"][] = "MKP";
$proto89["m_columns"][] = "CBruto";
$proto89["m_columns"][] = "PVenda";
$proto89["m_columns"][] = "referencia";
$proto89["m_columns"][] = "nome_aux";
$proto89["m_columns"][] = "categoria";
$proto89["m_columns"][] = "status";
$proto89["m_columns"][] = "foto";
$proto89["m_columns"][] = "pdtoiD1";
$proto89["m_columns"][] = "Rat_modelagem";
$proto89["m_columns"][] = "vigente1";
$obj = new SQLTable($proto89);

$proto88["m_table"] = $obj;
$proto88["m_sql"] = "INNER JOIN dbw_resumo_calculo ON tb_peditens.pdtoID = dbw_resumo_calculo.pdtoID";
$proto88["m_alias"] = "";
$proto88["m_srcTableName"] = "tb_peditens";
$proto90=array();
$proto90["m_sql"] = "tb_peditens.pdtoID = dbw_resumo_calculo.pdtoID";
$proto90["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "pdtoID",
	"m_strTable" => "tb_peditens",
	"m_srcTableName" => "tb_peditens"
));

$proto90["m_column"]=$obj;
$proto90["m_contained"] = array();
$proto90["m_strCase"] = "= dbw_resumo_calculo.pdtoID";
$proto90["m_havingmode"] = false;
$proto90["m_inBrackets"] = false;
$proto90["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto90);

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

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

	return $obj;
}
$queryData_tb_peditens = createSqlQuery_tb_peditens();


	
		;

																																	

$tdatatb_peditens[".sqlquery"] = $queryData_tb_peditens;

$tableEvents["tb_peditens"] = new eventsBase;
$tdatatb_peditens[".hasEvents"] = false;

?>