<?php



$tdataw_resumo_calculo = array();
$tdataw_resumo_calculo[".searchableFields"] = array();
$tdataw_resumo_calculo[".ShortName"] = "w_resumo_calculo";
$tdataw_resumo_calculo[".OwnerID"] = "";
$tdataw_resumo_calculo[".OriginalTable"] = "tb_mcalculo";


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

//	field labels
$fieldLabelsw_resumo_calculo = array();
$fieldToolTipsw_resumo_calculo = array();
$pageTitlesw_resumo_calculo = array();
$placeHoldersw_resumo_calculo = array();

if(mlang_getcurrentlang()=="Portuguese(Brazil)")
{
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"] = array();
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"] = array();
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"] = array();
	$pageTitlesw_resumo_calculo["Portuguese(Brazil)"] = array();
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["mcalcID"] = "M. calc";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["mcalcID"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["mcalcID"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["pdtoID"] = "Pdto ID";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["pdtoID"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["pdtoID"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["data"] = "Data/Calc.";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["data"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["data"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["versao"] = "Versão ";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["versao"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["versao"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["componente"] = "Componente";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["componente"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["componente"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["material"] = "Material";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["material"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["material"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["consumo"] = "Consumo";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["consumo"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["consumo"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["quebra"] = "Quebra";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["quebra"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["quebra"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["tempo"] = "Tempo";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["tempo"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["tempo"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["txo"] = "Txo";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["txo"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["txo"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["divisao"] = "Divisao";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["divisao"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["divisao"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["CMO"] = "CMO";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["CMO"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["CMO"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["CMat"] = "CMat";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["CMat"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["CMat"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["vigente"] = "Vigente";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["vigente"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["vigente"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["GGF"] = "GGF";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["GGF"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["GGF"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["RModel"] = "RModel";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["RModel"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["RModel"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["markup"] = "Markup";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["markup"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["markup"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["Mlucro"] = "M.lucro";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["Mlucro"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["Mlucro"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["MKP"] = "MKP";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["MKP"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["MKP"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["CBruto"] = "C.Bruto";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["CBruto"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["CBruto"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["PVenda"] = "P.Venda";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["PVenda"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["PVenda"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["referencia"] = "Modelo";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["referencia"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["referencia"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["nome_aux"] = "Nome Aux";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["nome_aux"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["nome_aux"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["categoria"] = "Categoria";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["categoria"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["categoria"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["status"] = "Status";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["status"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["status"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["foto"] = "Foto";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["foto"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["foto"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["pdtoiD1"] = "Pdtoi D1";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["pdtoiD1"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["pdtoiD1"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["Rat_modelagem"] = "Rat Modelagem";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["Rat_modelagem"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["Rat_modelagem"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["vigente1"] = "Vigente";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["vigente1"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["vigente1"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["pv_minimo"] = "Pv Minimo";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["pv_minimo"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["pv_minimo"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["pv_negociado"] = "Pv. Negociado";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["pv_negociado"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["pv_negociado"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["Resultado"] = "Resultado";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["Resultado"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["Resultado"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["data1"] = "Data Neg.";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["data1"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["data1"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["validade"] = "Validade";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["validade"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["validade"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["clienteID"] = "Cliente ID";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["clienteID"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["clienteID"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["cliente"] = "Cliente";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["cliente"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["cliente"] = "";
	$fieldLabelsw_resumo_calculo["Portuguese(Brazil)"]["clienteID1"] = "Cliente ID1";
	$fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]["clienteID1"] = "";
	$placeHoldersw_resumo_calculo["Portuguese(Brazil)"]["clienteID1"] = "";
	if (count($fieldToolTipsw_resumo_calculo["Portuguese(Brazil)"]))
		$tdataw_resumo_calculo[".isUseToolTips"] = true;
}


	$tdataw_resumo_calculo[".NCSearch"] = true;


	$tdataw_resumo_calculo[".scrollGridBody"] = true;

$tdataw_resumo_calculo[".shortTableName"] = "w_resumo_calculo";
$tdataw_resumo_calculo[".nSecOptions"] = 0;

$tdataw_resumo_calculo[".mainTableOwnerID"] = "";
$tdataw_resumo_calculo[".entityType"] = 1;

$tdataw_resumo_calculo[".strOriginalTableName"] = "tb_mcalculo";

	



$tdataw_resumo_calculo[".showAddInPopup"] = false;

$tdataw_resumo_calculo[".showEditInPopup"] = false;

$tdataw_resumo_calculo[".showViewInPopup"] = false;

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


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

	$tdataw_resumo_calculo[".audit"] = false;

	$tdataw_resumo_calculo[".locking"] = false;


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

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

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

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



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




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

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

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

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



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

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

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

$tdataw_resumo_calculo[".isUseAjaxSuggest"] = true;

$tdataw_resumo_calculo[".rowHighlite"] = true;





$tdataw_resumo_calculo[".ajaxCodeSnippetAdded"] = false;

$tdataw_resumo_calculo[".buttonsAdded"] = false;

$tdataw_resumo_calculo[".addPageEvents"] = false;

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


$tdataw_resumo_calculo[".badgeColor"] = "D2691E";


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

$tdataw_resumo_calculo[".googleLikeFields"] = array();
$tdataw_resumo_calculo[".googleLikeFields"][] = "mcalcID";
$tdataw_resumo_calculo[".googleLikeFields"][] = "pdtoID";
$tdataw_resumo_calculo[".googleLikeFields"][] = "data";
$tdataw_resumo_calculo[".googleLikeFields"][] = "versao";
$tdataw_resumo_calculo[".googleLikeFields"][] = "componente";
$tdataw_resumo_calculo[".googleLikeFields"][] = "material";
$tdataw_resumo_calculo[".googleLikeFields"][] = "consumo";
$tdataw_resumo_calculo[".googleLikeFields"][] = "quebra";
$tdataw_resumo_calculo[".googleLikeFields"][] = "tempo";
$tdataw_resumo_calculo[".googleLikeFields"][] = "txo";
$tdataw_resumo_calculo[".googleLikeFields"][] = "divisao";
$tdataw_resumo_calculo[".googleLikeFields"][] = "CMO";
$tdataw_resumo_calculo[".googleLikeFields"][] = "CMat";
$tdataw_resumo_calculo[".googleLikeFields"][] = "vigente";
$tdataw_resumo_calculo[".googleLikeFields"][] = "GGF";
$tdataw_resumo_calculo[".googleLikeFields"][] = "RModel";
$tdataw_resumo_calculo[".googleLikeFields"][] = "markup";
$tdataw_resumo_calculo[".googleLikeFields"][] = "Mlucro";
$tdataw_resumo_calculo[".googleLikeFields"][] = "MKP";
$tdataw_resumo_calculo[".googleLikeFields"][] = "CBruto";
$tdataw_resumo_calculo[".googleLikeFields"][] = "PVenda";
$tdataw_resumo_calculo[".googleLikeFields"][] = "referencia";
$tdataw_resumo_calculo[".googleLikeFields"][] = "nome_aux";
$tdataw_resumo_calculo[".googleLikeFields"][] = "categoria";
$tdataw_resumo_calculo[".googleLikeFields"][] = "status";
$tdataw_resumo_calculo[".googleLikeFields"][] = "foto";
$tdataw_resumo_calculo[".googleLikeFields"][] = "pdtoiD1";
$tdataw_resumo_calculo[".googleLikeFields"][] = "Rat_modelagem";
$tdataw_resumo_calculo[".googleLikeFields"][] = "vigente1";
$tdataw_resumo_calculo[".googleLikeFields"][] = "pv_minimo";
$tdataw_resumo_calculo[".googleLikeFields"][] = "pv_negociado";
$tdataw_resumo_calculo[".googleLikeFields"][] = "Resultado";
$tdataw_resumo_calculo[".googleLikeFields"][] = "data1";
$tdataw_resumo_calculo[".googleLikeFields"][] = "validade";
$tdataw_resumo_calculo[".googleLikeFields"][] = "clienteID";
$tdataw_resumo_calculo[".googleLikeFields"][] = "cliente";
$tdataw_resumo_calculo[".googleLikeFields"][] = "clienteID1";



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

$tdataw_resumo_calculo[".printerPageOrientation"] = 1;
$tdataw_resumo_calculo[".isPrinterPageFitToPage"] = 0;
$tdataw_resumo_calculo[".nPrinterPageScale"] = 50;

$tdataw_resumo_calculo[".nPrinterSplitRecords"] = 40;

$tdataw_resumo_calculo[".geocodingEnabled"] = false;










$tdataw_resumo_calculo[".pageSize"] = 20;

$tdataw_resumo_calculo[".warnLeavingPages"] = true;



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

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

$tdataw_resumo_calculo[".sqlHead"] = "SELECT tb_mcalculo.mcalcID,  tb_mcalculo.pdtoID,  tb_mcalculo.`data`,  tb_mcalculo.versao,  tb_mcalculo.componente,  tb_mcalculo.material,  tb_mcalculo.consumo,  tb_mcalculo.quebra,  tb_mcalculo.tempo,  tb_mcalculo.txo,  tb_mcalculo.divisao,  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO) AS CMO,  (tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra)) AS CMat,  tb_cotacao_material.vigente,  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo)) AS GGF,  (tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO) AS RModel,  tb_mcalculo.markup,  dbw_mkps.Mlucro,  dbw_mkps.MKP,  ((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO)) AS CBruto,  ((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP AS PVenda,  tb_produtos.referencia,  tb_produtos.nome_aux,  tb_produtos.categoria,  tb_produtos.status,  tb_produtos.foto,  tb_produtos.pdtoiD AS pdtoiD1,  tb_mcalculo.Rat_modelagem,  tb_mcalculo.vigente AS vigente1,  tb_negociado.pv_minimo,  tb_negociado.pv_negociado,  (tb_negociado.pv_negociado)-  (((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP) AS Resultado,  tb_negociado.`data` AS data1,  tb_negociado.validade,  tb_produtos.clienteID,  tb_clientes.cliente,  tb_clientes.clienteID AS clienteID1";
$tdataw_resumo_calculo[".sqlFrom"] = "FROM tb_mcalculo  INNER JOIN dbw_cmmobra ON tb_mcalculo.divisao = dbw_cmmobra.custominID  INNER JOIN tb_cotacao_material ON tb_mcalculo.material = tb_cotacao_material.materialID  , dbw_cmggf  , dbw_mkps  , tb_produtos  , tb_negociado  , tb_clientes";
$tdataw_resumo_calculo[".sqlWhereExpr"] = "(tb_mcalculo.pdtoID = tb_negociado.pdtoID) AND (tb_cotacao_material.vigente =1) AND (tb_mcalculo.markup =dbw_mkps.Mlucro) AND (tb_produtos.pdtoiD =tb_mcalculo.pdtoID) AND (tb_mcalculo.vigente =1) and (tb_produtos.clienteID = tb_clientes.clienteID)";
$tdataw_resumo_calculo[".sqlTail"] = "";










//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataw_resumo_calculo[".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;
$tdataw_resumo_calculo[".arrGroupsPerPage"] = $arrGPP;

$tdataw_resumo_calculo[".highlightSearchResults"] = true;

$tableKeysw_resumo_calculo = array();
$tableKeysw_resumo_calculo[] = "mcalcID";
$tdataw_resumo_calculo[".Keys"] = $tableKeysw_resumo_calculo;


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




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

	
		$fdata["AutoInc"] = true;

	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.mcalcID";

	
	
				$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


	$tdataw_resumo_calculo["mcalcID"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "mcalcID";
//	pdtoID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "pdtoID";
	$fdata["GoodName"] = "pdtoID";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","pdtoID");
	$fdata["FieldType"] = 3;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.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" => "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


	$tdataw_resumo_calculo["pdtoID"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "pdtoID";
//	data
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "data";
	$fdata["GoodName"] = "data";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","data");
	$fdata["FieldType"] = 7;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.`data`";

	
	
				$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"] = 100;
	$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


	$tdataw_resumo_calculo["data"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "data";
//	versao
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "versao";
	$fdata["GoodName"] = "versao";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","versao");
	$fdata["FieldType"] = 200;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.versao";

	
	
				$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["EditParams"].= " maxlength=50";

		$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


	$tdataw_resumo_calculo["versao"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "versao";
//	componente
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "componente";
	$fdata["GoodName"] = "componente";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","componente");
	$fdata["FieldType"] = 200;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.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" => "Lookup wizard");

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


	
	

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

	
		
	$edata["LinkField"] = "componenteID";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "componente";

	

	
	$edata["LookupOrderBy"] = "";

	
	
		$edata["AllowToAdd"] = true;
			$edata["addPageId"] = "add";

	

	
	
		$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


	$tdataw_resumo_calculo["componente"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "componente";
//	material
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "material";
	$fdata["GoodName"] = "material";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","material");
	$fdata["FieldType"] = 3;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.material";

	
	
				$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_materiais";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "materialID";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "material";

	

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

	
	
		$edata["AllowToAdd"] = true;
			$edata["addPageId"] = "add";

	

	
	
		$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


	$tdataw_resumo_calculo["material"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "material";
//	consumo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "consumo";
	$fdata["GoodName"] = "consumo";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","consumo");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.consumo";

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 4;

	
	
	
	
	
		$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


	$tdataw_resumo_calculo["consumo"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "consumo";
//	quebra
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "quebra";
	$fdata["GoodName"] = "quebra";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","quebra");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.quebra";

	
	
				$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["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


	$tdataw_resumo_calculo["quebra"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "quebra";
//	tempo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "tempo";
	$fdata["GoodName"] = "tempo";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","tempo");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.tempo";

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 3;

	
	
	
	
	
		$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


	$tdataw_resumo_calculo["tempo"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "tempo";
//	txo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "txo";
	$fdata["GoodName"] = "txo";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","txo");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.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["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


	$tdataw_resumo_calculo["txo"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "txo";
//	divisao
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "divisao";
	$fdata["GoodName"] = "divisao";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","divisao");
	$fdata["FieldType"] = 3;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.divisao";

	
	
				$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_custominuto";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "custominID";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "divisao";

	

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

	
	
		$edata["AllowToAdd"] = true;
			$edata["addPageId"] = "add";

	

	
	
		$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


	$tdataw_resumo_calculo["divisao"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "divisao";
//	CMO
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "CMO";
	$fdata["GoodName"] = "CMO";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","CMO");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)";

	
	
				$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


	$tdataw_resumo_calculo["CMO"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "CMO";
//	CMat
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "CMat";
	$fdata["GoodName"] = "CMat";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","CMat");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))";

	
	
				$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


	$tdataw_resumo_calculo["CMat"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "CMat";
//	vigente
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "vigente";
	$fdata["GoodName"] = "vigente";
	$fdata["ownerTable"] = "tb_cotacao_material";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","vigente");
	$fdata["FieldType"] = 3;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_cotacao_material.vigente";

	
	
				$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


	$tdataw_resumo_calculo["vigente"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "vigente";
//	GGF
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "GGF";
	$fdata["GoodName"] = "GGF";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","GGF");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))";

	
	
				$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


	$tdataw_resumo_calculo["GGF"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "GGF";
//	RModel
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "RModel";
	$fdata["GoodName"] = "RModel";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","RModel");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO)";

	
	
				$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


	$tdataw_resumo_calculo["RModel"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "RModel";
//	markup
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 17;
	$fdata["strName"] = "markup";
	$fdata["GoodName"] = "markup";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","markup");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.markup";

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 4;

	
	
	
	
	
		$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"] = "dbw_mkps";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "mkpID";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "Mlucro";

	

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

	
	
	
	

	
	
		$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


	$tdataw_resumo_calculo["markup"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "markup";
//	Mlucro
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 18;
	$fdata["strName"] = "Mlucro";
	$fdata["GoodName"] = "Mlucro";
	$fdata["ownerTable"] = "dbw_mkps";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","Mlucro");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "dbw_mkps.Mlucro";

	
	
				$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


	$tdataw_resumo_calculo["Mlucro"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "Mlucro";
//	MKP
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 19;
	$fdata["strName"] = "MKP";
	$fdata["GoodName"] = "MKP";
	$fdata["ownerTable"] = "dbw_mkps";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","MKP");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "dbw_mkps.MKP";

	
	
				$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


	$tdataw_resumo_calculo["MKP"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "MKP";
//	CBruto
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 20;
	$fdata["strName"] = "CBruto";
	$fdata["GoodName"] = "CBruto";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","CBruto");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))";

	
	
				$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


	$tdataw_resumo_calculo["CBruto"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "CBruto";
//	PVenda
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 21;
	$fdata["strName"] = "PVenda";
	$fdata["GoodName"] = "PVenda";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","PVenda");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP";

	
	
				$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


	$tdataw_resumo_calculo["PVenda"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "PVenda";
//	referencia
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 22;
	$fdata["strName"] = "referencia";
	$fdata["GoodName"] = "referencia";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","referencia");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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();
	
	
	//	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


	$tdataw_resumo_calculo["referencia"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "referencia";
//	nome_aux
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 23;
	$fdata["strName"] = "nome_aux";
	$fdata["GoodName"] = "nome_aux";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","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" => "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();
	
	
	//	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


	$tdataw_resumo_calculo["nome_aux"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "nome_aux";
//	categoria
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 24;
	$fdata["strName"] = "categoria";
	$fdata["GoodName"] = "categoria";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","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


	$tdataw_resumo_calculo["categoria"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "categoria";
//	status
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 25;
	$fdata["strName"] = "status";
	$fdata["GoodName"] = "status";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","status");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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();
	
	
	//	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


	$tdataw_resumo_calculo["status"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "status";
//	foto
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 26;
	$fdata["strName"] = "foto";
	$fdata["GoodName"] = "foto";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","foto");
	$fdata["FieldType"] = 201;

	
	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "uploads\\foto_pdto";

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

	$vdata = array("ViewFormat" => "File-based Image");

	
	
				$vdata["ShowThumbnail"] = true;
	$vdata["ThumbWidth"] = 72;
	$vdata["ThumbHeight"] = 72;
	$vdata["ImageWidth"] = 130;
	$vdata["ImageHeight"] = 130;

			$vdata["multipleImgMode"] = 3;
	$vdata["maxImages"] = 0;

			$vdata["showGallery"] = true;
	$vdata["galleryMode"] = 2;
	$vdata["captionMode"] = 2;
	$vdata["captionField"] = "";

	$vdata["imageBorder"] = 1;
	$vdata["imageFullWidth"] = 1;


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

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

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

	$edata = array("EditFormat" => "Document upload");

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


	
	



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

		$edata["maxNumberOfFiles"] = 0;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

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

		$edata["CreateThumbnail"] = true;
	$edata["StrThumbnail"] = "th";
			$edata["ThumbnailSize"] = 600;

			
	
	
	
	$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


	$tdataw_resumo_calculo["foto"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "foto";
//	pdtoiD1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 27;
	$fdata["strName"] = "pdtoiD1";
	$fdata["GoodName"] = "pdtoiD1";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","pdtoiD1");
	$fdata["FieldType"] = 3;

	
		$fdata["AutoInc"] = true;

	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_produtos.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" => "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


	$tdataw_resumo_calculo["pdtoiD1"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "pdtoiD1";
//	Rat_modelagem
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 28;
	$fdata["strName"] = "Rat_modelagem";
	$fdata["GoodName"] = "Rat_modelagem";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","Rat_modelagem");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.Rat_modelagem";

	
	
				$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["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


	$tdataw_resumo_calculo["Rat_modelagem"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "Rat_modelagem";
//	vigente1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 29;
	$fdata["strName"] = "vigente1";
	$fdata["GoodName"] = "vigente1";
	$fdata["ownerTable"] = "tb_mcalculo";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","vigente1");
	$fdata["FieldType"] = 3;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_mcalculo.vigente";

	
	
				$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


	$tdataw_resumo_calculo["vigente1"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "vigente1";
//	pv_minimo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 30;
	$fdata["strName"] = "pv_minimo";
	$fdata["GoodName"] = "pv_minimo";
	$fdata["ownerTable"] = "tb_negociado";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","pv_minimo");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_negociado.pv_minimo";

	
	
				$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


	$tdataw_resumo_calculo["pv_minimo"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "pv_minimo";
//	pv_negociado
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 31;
	$fdata["strName"] = "pv_negociado";
	$fdata["GoodName"] = "pv_negociado";
	$fdata["ownerTable"] = "tb_negociado";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","pv_negociado");
	$fdata["FieldType"] = 14;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_negociado.pv_negociado";

	
	
				$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


	$tdataw_resumo_calculo["pv_negociado"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "pv_negociado";
//	Resultado
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 32;
	$fdata["strName"] = "Resultado";
	$fdata["GoodName"] = "Resultado";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","Resultado");
	$fdata["FieldType"] = 5;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "(tb_negociado.pv_negociado)-  (((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP)";

	
	
				$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


	$tdataw_resumo_calculo["Resultado"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "Resultado";
//	data1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 33;
	$fdata["strName"] = "data1";
	$fdata["GoodName"] = "data1";
	$fdata["ownerTable"] = "tb_negociado";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","data1");
	$fdata["FieldType"] = 7;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_negociado.`data`";

	
	
				$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" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 13;
	$edata["InitialYearFactor"] = 100;
	$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


	$tdataw_resumo_calculo["data1"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "data1";
//	validade
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 34;
	$fdata["strName"] = "validade";
	$fdata["GoodName"] = "validade";
	$fdata["ownerTable"] = "tb_negociado";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","validade");
	$fdata["FieldType"] = 7;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_negociado.validade";

	
	
				$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" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 13;
	$edata["InitialYearFactor"] = 100;
	$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


	$tdataw_resumo_calculo["validade"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "validade";
//	clienteID
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 35;
	$fdata["strName"] = "clienteID";
	$fdata["GoodName"] = "clienteID";
	$fdata["ownerTable"] = "tb_produtos";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","clienteID");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

	
	
				$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


	$tdataw_resumo_calculo["clienteID"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "clienteID";
//	cliente
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 36;
	$fdata["strName"] = "cliente";
	$fdata["GoodName"] = "cliente";
	$fdata["ownerTable"] = "tb_clientes";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","cliente");
	$fdata["FieldType"] = 200;

	
	
	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_clientes.cliente";

	
	
				$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();
	
	
	//	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


	$tdataw_resumo_calculo["cliente"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "cliente";
//	clienteID1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 37;
	$fdata["strName"] = "clienteID1";
	$fdata["GoodName"] = "clienteID1";
	$fdata["ownerTable"] = "tb_clientes";
	$fdata["Label"] = GetFieldLabel("w_resumo_calculo","clienteID1");
	$fdata["FieldType"] = 3;

	
		$fdata["AutoInc"] = true;

	
			

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

		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "tb_clientes.clienteID";

	
	
				$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


	$tdataw_resumo_calculo["clienteID1"] = $fdata;
		$tdataw_resumo_calculo[".searchableFields"][] = "clienteID1";


$tables_data["w_resumo_calculo"]=&$tdataw_resumo_calculo;
$field_labels["w_resumo_calculo"] = &$fieldLabelsw_resumo_calculo;
$fieldToolTips["w_resumo_calculo"] = &$fieldToolTipsw_resumo_calculo;
$placeHolders["w_resumo_calculo"] = &$placeHoldersw_resumo_calculo;
$page_titles["w_resumo_calculo"] = &$pageTitlesw_resumo_calculo;

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

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



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


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










function createSqlQuery_w_resumo_calculo()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "tb_mcalculo.mcalcID,  tb_mcalculo.pdtoID,  tb_mcalculo.`data`,  tb_mcalculo.versao,  tb_mcalculo.componente,  tb_mcalculo.material,  tb_mcalculo.consumo,  tb_mcalculo.quebra,  tb_mcalculo.tempo,  tb_mcalculo.txo,  tb_mcalculo.divisao,  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO) AS CMO,  (tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra)) AS CMat,  tb_cotacao_material.vigente,  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo)) AS GGF,  (tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO) AS RModel,  tb_mcalculo.markup,  dbw_mkps.Mlucro,  dbw_mkps.MKP,  ((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO)) AS CBruto,  ((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP AS PVenda,  tb_produtos.referencia,  tb_produtos.nome_aux,  tb_produtos.categoria,  tb_produtos.status,  tb_produtos.foto,  tb_produtos.pdtoiD AS pdtoiD1,  tb_mcalculo.Rat_modelagem,  tb_mcalculo.vigente AS vigente1,  tb_negociado.pv_minimo,  tb_negociado.pv_negociado,  (tb_negociado.pv_negociado)-  (((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP) AS Resultado,  tb_negociado.`data` AS data1,  tb_negociado.validade,  tb_produtos.clienteID,  tb_clientes.cliente,  tb_clientes.clienteID AS clienteID1";
$proto0["m_strFrom"] = "FROM tb_mcalculo  INNER JOIN dbw_cmmobra ON tb_mcalculo.divisao = dbw_cmmobra.custominID  INNER JOIN tb_cotacao_material ON tb_mcalculo.material = tb_cotacao_material.materialID  , dbw_cmggf  , dbw_mkps  , tb_produtos  , tb_negociado  , tb_clientes";
$proto0["m_strWhere"] = "(tb_mcalculo.pdtoID = tb_negociado.pdtoID) AND (tb_cotacao_material.vigente =1) AND (tb_mcalculo.markup =dbw_mkps.Mlucro) AND (tb_produtos.pdtoiD =tb_mcalculo.pdtoID) AND (tb_mcalculo.vigente =1) and (tb_produtos.clienteID = tb_clientes.clienteID)";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "(tb_mcalculo.pdtoID = tb_negociado.pdtoID) AND (tb_cotacao_material.vigente =1) AND (tb_mcalculo.markup =dbw_mkps.Mlucro) AND (tb_produtos.pdtoiD =tb_mcalculo.pdtoID) AND (tb_mcalculo.vigente =1) and (tb_produtos.clienteID = tb_clientes.clienteID)";
$proto2["m_uniontype"] = "SQLL_AND";
	$obj = new SQLNonParsed(array(
	"m_sql" => "(tb_mcalculo.pdtoID = tb_negociado.pdtoID) AND (tb_cotacao_material.vigente =1) AND (tb_mcalculo.markup =dbw_mkps.Mlucro) AND (tb_produtos.pdtoiD =tb_mcalculo.pdtoID) AND (tb_mcalculo.vigente =1) and (tb_produtos.clienteID = tb_clientes.clienteID)"
));

$proto2["m_column"]=$obj;
$proto2["m_contained"] = array();
						$proto4=array();
$proto4["m_sql"] = "tb_mcalculo.pdtoID = tb_negociado.pdtoID";
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "pdtoID",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

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

			$proto2["m_contained"][]=$obj;
						$proto6=array();
$proto6["m_sql"] = "tb_cotacao_material.vigente =1";
$proto6["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "vigente",
	"m_strTable" => "tb_cotacao_material",
	"m_srcTableName" => "w_resumo_calculo"
));

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

			$proto2["m_contained"][]=$obj;
						$proto8=array();
$proto8["m_sql"] = "tb_mcalculo.markup =dbw_mkps.Mlucro";
$proto8["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "markup",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto8["m_column"]=$obj;
$proto8["m_contained"] = array();
$proto8["m_strCase"] = "=dbw_mkps.Mlucro";
$proto8["m_havingmode"] = false;
$proto8["m_inBrackets"] = true;
$proto8["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto8);

			$proto2["m_contained"][]=$obj;
						$proto10=array();
$proto10["m_sql"] = "tb_produtos.pdtoiD =tb_mcalculo.pdtoID";
$proto10["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "pdtoiD",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "w_resumo_calculo"
));

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

			$proto2["m_contained"][]=$obj;
						$proto12=array();
$proto12["m_sql"] = "tb_mcalculo.vigente =1";
$proto12["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "vigente",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

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

			$proto2["m_contained"][]=$obj;
						$proto14=array();
$proto14["m_sql"] = "tb_produtos.clienteID = tb_clientes.clienteID";
$proto14["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "clienteID",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto14["m_column"]=$obj;
$proto14["m_contained"] = array();
$proto14["m_strCase"] = "= tb_clientes.clienteID";
$proto14["m_havingmode"] = false;
$proto14["m_inBrackets"] = true;
$proto14["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto14);

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

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

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

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "mcalcID",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto18["m_sql"] = "tb_mcalculo.mcalcID";
$proto18["m_srcTableName"] = "w_resumo_calculo";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

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

$proto20["m_sql"] = "tb_mcalculo.pdtoID";
$proto20["m_srcTableName"] = "w_resumo_calculo";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

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

$proto22["m_sql"] = "tb_mcalculo.`data`";
$proto22["m_srcTableName"] = "w_resumo_calculo";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

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

$proto24["m_sql"] = "tb_mcalculo.versao";
$proto24["m_srcTableName"] = "w_resumo_calculo";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

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

$proto26["m_sql"] = "tb_mcalculo.componente";
$proto26["m_srcTableName"] = "w_resumo_calculo";
$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "";
$obj = new SQLFieldListItem($proto26);

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

$proto28["m_sql"] = "tb_mcalculo.material";
$proto28["m_srcTableName"] = "w_resumo_calculo";
$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "";
$obj = new SQLFieldListItem($proto28);

$proto0["m_fieldlist"][]=$obj;
						$proto30=array();
			$obj = new SQLField(array(
	"m_strName" => "consumo",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto30["m_sql"] = "tb_mcalculo.consumo";
$proto30["m_srcTableName"] = "w_resumo_calculo";
$proto30["m_expr"]=$obj;
$proto30["m_alias"] = "";
$obj = new SQLFieldListItem($proto30);

$proto0["m_fieldlist"][]=$obj;
						$proto32=array();
			$obj = new SQLField(array(
	"m_strName" => "quebra",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto32["m_sql"] = "tb_mcalculo.quebra";
$proto32["m_srcTableName"] = "w_resumo_calculo";
$proto32["m_expr"]=$obj;
$proto32["m_alias"] = "";
$obj = new SQLFieldListItem($proto32);

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

$proto34["m_sql"] = "tb_mcalculo.tempo";
$proto34["m_srcTableName"] = "w_resumo_calculo";
$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "";
$obj = new SQLFieldListItem($proto34);

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

$proto36["m_sql"] = "tb_mcalculo.txo";
$proto36["m_srcTableName"] = "w_resumo_calculo";
$proto36["m_expr"]=$obj;
$proto36["m_alias"] = "";
$obj = new SQLFieldListItem($proto36);

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

$proto38["m_sql"] = "tb_mcalculo.divisao";
$proto38["m_srcTableName"] = "w_resumo_calculo";
$proto38["m_expr"]=$obj;
$proto38["m_alias"] = "";
$obj = new SQLFieldListItem($proto38);

$proto0["m_fieldlist"][]=$obj;
						$proto40=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)"
));

$proto40["m_sql"] = "((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)";
$proto40["m_srcTableName"] = "w_resumo_calculo";
$proto40["m_expr"]=$obj;
$proto40["m_alias"] = "CMO";
$obj = new SQLFieldListItem($proto40);

$proto0["m_fieldlist"][]=$obj;
						$proto42=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))"
));

$proto42["m_sql"] = "(tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))";
$proto42["m_srcTableName"] = "w_resumo_calculo";
$proto42["m_expr"]=$obj;
$proto42["m_alias"] = "CMat";
$obj = new SQLFieldListItem($proto42);

$proto0["m_fieldlist"][]=$obj;
						$proto44=array();
			$obj = new SQLField(array(
	"m_strName" => "vigente",
	"m_strTable" => "tb_cotacao_material",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto44["m_sql"] = "tb_cotacao_material.vigente";
$proto44["m_srcTableName"] = "w_resumo_calculo";
$proto44["m_expr"]=$obj;
$proto44["m_alias"] = "";
$obj = new SQLFieldListItem($proto44);

$proto0["m_fieldlist"][]=$obj;
						$proto46=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))"
));

$proto46["m_sql"] = "(dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))";
$proto46["m_srcTableName"] = "w_resumo_calculo";
$proto46["m_expr"]=$obj;
$proto46["m_alias"] = "GGF";
$obj = new SQLFieldListItem($proto46);

$proto0["m_fieldlist"][]=$obj;
						$proto48=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO)"
));

$proto48["m_sql"] = "(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO)";
$proto48["m_srcTableName"] = "w_resumo_calculo";
$proto48["m_expr"]=$obj;
$proto48["m_alias"] = "RModel";
$obj = new SQLFieldListItem($proto48);

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

$proto50["m_sql"] = "tb_mcalculo.markup";
$proto50["m_srcTableName"] = "w_resumo_calculo";
$proto50["m_expr"]=$obj;
$proto50["m_alias"] = "";
$obj = new SQLFieldListItem($proto50);

$proto0["m_fieldlist"][]=$obj;
						$proto52=array();
			$obj = new SQLField(array(
	"m_strName" => "Mlucro",
	"m_strTable" => "dbw_mkps",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto52["m_sql"] = "dbw_mkps.Mlucro";
$proto52["m_srcTableName"] = "w_resumo_calculo";
$proto52["m_expr"]=$obj;
$proto52["m_alias"] = "";
$obj = new SQLFieldListItem($proto52);

$proto0["m_fieldlist"][]=$obj;
						$proto54=array();
			$obj = new SQLField(array(
	"m_strName" => "MKP",
	"m_strTable" => "dbw_mkps",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto54["m_sql"] = "dbw_mkps.MKP";
$proto54["m_srcTableName"] = "w_resumo_calculo";
$proto54["m_expr"]=$obj;
$proto54["m_alias"] = "";
$obj = new SQLFieldListItem($proto54);

$proto0["m_fieldlist"][]=$obj;
						$proto56=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))"
));

$proto56["m_sql"] = "((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))";
$proto56["m_srcTableName"] = "w_resumo_calculo";
$proto56["m_expr"]=$obj;
$proto56["m_alias"] = "CBruto";
$obj = new SQLFieldListItem($proto56);

$proto0["m_fieldlist"][]=$obj;
						$proto58=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP"
));

$proto58["m_sql"] = "((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP";
$proto58["m_srcTableName"] = "w_resumo_calculo";
$proto58["m_expr"]=$obj;
$proto58["m_alias"] = "PVenda";
$obj = new SQLFieldListItem($proto58);

$proto0["m_fieldlist"][]=$obj;
						$proto60=array();
			$obj = new SQLField(array(
	"m_strName" => "referencia",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto60["m_sql"] = "tb_produtos.referencia";
$proto60["m_srcTableName"] = "w_resumo_calculo";
$proto60["m_expr"]=$obj;
$proto60["m_alias"] = "";
$obj = new SQLFieldListItem($proto60);

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

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

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto66=array();
			$obj = new SQLField(array(
	"m_strName" => "status",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto66["m_sql"] = "tb_produtos.status";
$proto66["m_srcTableName"] = "w_resumo_calculo";
$proto66["m_expr"]=$obj;
$proto66["m_alias"] = "";
$obj = new SQLFieldListItem($proto66);

$proto0["m_fieldlist"][]=$obj;
						$proto68=array();
			$obj = new SQLField(array(
	"m_strName" => "foto",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto68["m_sql"] = "tb_produtos.foto";
$proto68["m_srcTableName"] = "w_resumo_calculo";
$proto68["m_expr"]=$obj;
$proto68["m_alias"] = "";
$obj = new SQLFieldListItem($proto68);

$proto0["m_fieldlist"][]=$obj;
						$proto70=array();
			$obj = new SQLField(array(
	"m_strName" => "pdtoiD",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto70["m_sql"] = "tb_produtos.pdtoiD";
$proto70["m_srcTableName"] = "w_resumo_calculo";
$proto70["m_expr"]=$obj;
$proto70["m_alias"] = "pdtoiD1";
$obj = new SQLFieldListItem($proto70);

$proto0["m_fieldlist"][]=$obj;
						$proto72=array();
			$obj = new SQLField(array(
	"m_strName" => "Rat_modelagem",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto72["m_sql"] = "tb_mcalculo.Rat_modelagem";
$proto72["m_srcTableName"] = "w_resumo_calculo";
$proto72["m_expr"]=$obj;
$proto72["m_alias"] = "";
$obj = new SQLFieldListItem($proto72);

$proto0["m_fieldlist"][]=$obj;
						$proto74=array();
			$obj = new SQLField(array(
	"m_strName" => "vigente",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto74["m_sql"] = "tb_mcalculo.vigente";
$proto74["m_srcTableName"] = "w_resumo_calculo";
$proto74["m_expr"]=$obj;
$proto74["m_alias"] = "vigente1";
$obj = new SQLFieldListItem($proto74);

$proto0["m_fieldlist"][]=$obj;
						$proto76=array();
			$obj = new SQLField(array(
	"m_strName" => "pv_minimo",
	"m_strTable" => "tb_negociado",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto76["m_sql"] = "tb_negociado.pv_minimo";
$proto76["m_srcTableName"] = "w_resumo_calculo";
$proto76["m_expr"]=$obj;
$proto76["m_alias"] = "";
$obj = new SQLFieldListItem($proto76);

$proto0["m_fieldlist"][]=$obj;
						$proto78=array();
			$obj = new SQLField(array(
	"m_strName" => "pv_negociado",
	"m_strTable" => "tb_negociado",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto78["m_sql"] = "tb_negociado.pv_negociado";
$proto78["m_srcTableName"] = "w_resumo_calculo";
$proto78["m_expr"]=$obj;
$proto78["m_alias"] = "";
$obj = new SQLFieldListItem($proto78);

$proto0["m_fieldlist"][]=$obj;
						$proto80=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "(tb_negociado.pv_negociado)-  (((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP)"
));

$proto80["m_sql"] = "(tb_negociado.pv_negociado)-  (((tb_cotacao_material.cotacao*(tb_mcalculo.consumo*tb_mcalculo.quebra))+  ((tb_mcalculo.tempo *tb_mcalculo.txo)*dbw_cmmobra.CMMO)+  (dbw_cmggf.CMGGF*(tb_mcalculo.tempo *tb_mcalculo.txo))+(tb_mcalculo.Rat_modelagem*dbw_cmmobra.CMMO))*dbw_mkps.MKP)";
$proto80["m_srcTableName"] = "w_resumo_calculo";
$proto80["m_expr"]=$obj;
$proto80["m_alias"] = "Resultado";
$obj = new SQLFieldListItem($proto80);

$proto0["m_fieldlist"][]=$obj;
						$proto82=array();
			$obj = new SQLField(array(
	"m_strName" => "data",
	"m_strTable" => "tb_negociado",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto82["m_sql"] = "tb_negociado.`data`";
$proto82["m_srcTableName"] = "w_resumo_calculo";
$proto82["m_expr"]=$obj;
$proto82["m_alias"] = "data1";
$obj = new SQLFieldListItem($proto82);

$proto0["m_fieldlist"][]=$obj;
						$proto84=array();
			$obj = new SQLField(array(
	"m_strName" => "validade",
	"m_strTable" => "tb_negociado",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto84["m_sql"] = "tb_negociado.validade";
$proto84["m_srcTableName"] = "w_resumo_calculo";
$proto84["m_expr"]=$obj;
$proto84["m_alias"] = "";
$obj = new SQLFieldListItem($proto84);

$proto0["m_fieldlist"][]=$obj;
						$proto86=array();
			$obj = new SQLField(array(
	"m_strName" => "clienteID",
	"m_strTable" => "tb_produtos",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto86["m_sql"] = "tb_produtos.clienteID";
$proto86["m_srcTableName"] = "w_resumo_calculo";
$proto86["m_expr"]=$obj;
$proto86["m_alias"] = "";
$obj = new SQLFieldListItem($proto86);

$proto0["m_fieldlist"][]=$obj;
						$proto88=array();
			$obj = new SQLField(array(
	"m_strName" => "cliente",
	"m_strTable" => "tb_clientes",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto88["m_sql"] = "tb_clientes.cliente";
$proto88["m_srcTableName"] = "w_resumo_calculo";
$proto88["m_expr"]=$obj;
$proto88["m_alias"] = "";
$obj = new SQLFieldListItem($proto88);

$proto0["m_fieldlist"][]=$obj;
						$proto90=array();
			$obj = new SQLField(array(
	"m_strName" => "clienteID",
	"m_strTable" => "tb_clientes",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto90["m_sql"] = "tb_clientes.clienteID";
$proto90["m_srcTableName"] = "w_resumo_calculo";
$proto90["m_expr"]=$obj;
$proto90["m_alias"] = "clienteID1";
$obj = new SQLFieldListItem($proto90);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto92=array();
$proto92["m_link"] = "SQLL_MAIN";
			$proto93=array();
$proto93["m_strName"] = "tb_mcalculo";
$proto93["m_srcTableName"] = "w_resumo_calculo";
$proto93["m_columns"] = array();
$proto93["m_columns"][] = "mcalcID";
$proto93["m_columns"][] = "pdtoID";
$proto93["m_columns"][] = "data";
$proto93["m_columns"][] = "versao";
$proto93["m_columns"][] = "componente";
$proto93["m_columns"][] = "material";
$proto93["m_columns"][] = "consumo";
$proto93["m_columns"][] = "quebra";
$proto93["m_columns"][] = "tempo";
$proto93["m_columns"][] = "txo";
$proto93["m_columns"][] = "divisao";
$proto93["m_columns"][] = "markup";
$proto93["m_columns"][] = "Rat_modelagem";
$proto93["m_columns"][] = "vigente";
$obj = new SQLTable($proto93);

$proto92["m_table"] = $obj;
$proto92["m_sql"] = "tb_mcalculo";
$proto92["m_alias"] = "";
$proto92["m_srcTableName"] = "w_resumo_calculo";
$proto94=array();
$proto94["m_sql"] = "";
$proto94["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
												$proto96=array();
$proto96["m_link"] = "SQLL_INNERJOIN";
			$proto97=array();
$proto97["m_strName"] = "dbw_cmmobra";
$proto97["m_srcTableName"] = "w_resumo_calculo";
$proto97["m_columns"] = array();
$proto97["m_columns"][] = "custominID";
$proto97["m_columns"][] = "divisao";
$proto97["m_columns"][] = "salari_base";
$proto97["m_columns"][] = "encargos";
$proto97["m_columns"][] = "funcionarios";
$proto97["m_columns"][] = "custo_folha";
$proto97["m_columns"][] = "CMMO";
$proto97["m_columns"][] = "MTmes";
$proto97["m_columns"][] = "Dias_mes";
$proto97["m_columns"][] = "atualizado";
$proto97["m_columns"][] = "vigente";
$proto97["m_columns"][] = "vigente1";
$obj = new SQLTable($proto97);

$proto96["m_table"] = $obj;
$proto96["m_sql"] = "INNER JOIN dbw_cmmobra ON tb_mcalculo.divisao = dbw_cmmobra.custominID";
$proto96["m_alias"] = "";
$proto96["m_srcTableName"] = "w_resumo_calculo";
$proto98=array();
$proto98["m_sql"] = "tb_mcalculo.divisao = dbw_cmmobra.custominID";
$proto98["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "divisao",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto98["m_column"]=$obj;
$proto98["m_contained"] = array();
$proto98["m_strCase"] = "= dbw_cmmobra.custominID";
$proto98["m_havingmode"] = false;
$proto98["m_inBrackets"] = false;
$proto98["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto98);

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

$proto0["m_fromlist"][]=$obj;
												$proto100=array();
$proto100["m_link"] = "SQLL_INNERJOIN";
			$proto101=array();
$proto101["m_strName"] = "tb_cotacao_material";
$proto101["m_srcTableName"] = "w_resumo_calculo";
$proto101["m_columns"] = array();
$proto101["m_columns"][] = "cotamatiD";
$proto101["m_columns"][] = "materialID";
$proto101["m_columns"][] = "data";
$proto101["m_columns"][] = "cotacao";
$proto101["m_columns"][] = "vigente";
$obj = new SQLTable($proto101);

$proto100["m_table"] = $obj;
$proto100["m_sql"] = "INNER JOIN tb_cotacao_material ON tb_mcalculo.material = tb_cotacao_material.materialID";
$proto100["m_alias"] = "";
$proto100["m_srcTableName"] = "w_resumo_calculo";
$proto102=array();
$proto102["m_sql"] = "tb_mcalculo.material = tb_cotacao_material.materialID";
$proto102["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "material",
	"m_strTable" => "tb_mcalculo",
	"m_srcTableName" => "w_resumo_calculo"
));

$proto102["m_column"]=$obj;
$proto102["m_contained"] = array();
$proto102["m_strCase"] = "= tb_cotacao_material.materialID";
$proto102["m_havingmode"] = false;
$proto102["m_inBrackets"] = false;
$proto102["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto102);

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

$proto0["m_fromlist"][]=$obj;
												$proto104=array();
$proto104["m_link"] = "SQLL_CROSSJOIN";
			$proto105=array();
$proto105["m_strName"] = "dbw_cmggf";
$proto105["m_srcTableName"] = "w_resumo_calculo";
$proto105["m_columns"] = array();
$proto105["m_columns"][] = "varggfID";
$proto105["m_columns"][] = "variavel";
$proto105["m_columns"][] = "Desp_projetada";
$proto105["m_columns"][] = "data";
$proto105["m_columns"][] = "vigente";
$proto105["m_columns"][] = "dias_mes";
$proto105["m_columns"][] = "hrs_dia";
$proto105["m_columns"][] = "CMGGF";
$proto105["m_columns"][] = "vigente1";
$obj = new SQLTable($proto105);

$proto104["m_table"] = $obj;
$proto104["m_sql"] = "dbw_cmggf";
$proto104["m_alias"] = "";
$proto104["m_srcTableName"] = "w_resumo_calculo";
$proto106=array();
$proto106["m_sql"] = "";
$proto106["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
												$proto108=array();
$proto108["m_link"] = "SQLL_CROSSJOIN";
			$proto109=array();
$proto109["m_strName"] = "dbw_mkps";
$proto109["m_srcTableName"] = "w_resumo_calculo";
$proto109["m_columns"] = array();
$proto109["m_columns"][] = "mkpID";
$proto109["m_columns"][] = "Mlucro";
$proto109["m_columns"][] = "abilitar";
$proto109["m_columns"][] = "MKP";
$obj = new SQLTable($proto109);

$proto108["m_table"] = $obj;
$proto108["m_sql"] = "dbw_mkps";
$proto108["m_alias"] = "";
$proto108["m_srcTableName"] = "w_resumo_calculo";
$proto110=array();
$proto110["m_sql"] = "";
$proto110["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
												$proto112=array();
$proto112["m_link"] = "SQLL_CROSSJOIN";
			$proto113=array();
$proto113["m_strName"] = "tb_produtos";
$proto113["m_srcTableName"] = "w_resumo_calculo";
$proto113["m_columns"] = array();
$proto113["m_columns"][] = "pdtoiD";
$proto113["m_columns"][] = "clienteID";
$proto113["m_columns"][] = "referencia";
$proto113["m_columns"][] = "nome_aux";
$proto113["m_columns"][] = "categoria";
$proto113["m_columns"][] = "status";
$proto113["m_columns"][] = "foto";
$proto113["m_columns"][] = "ficha_tec";
$obj = new SQLTable($proto113);

$proto112["m_table"] = $obj;
$proto112["m_sql"] = "tb_produtos";
$proto112["m_alias"] = "";
$proto112["m_srcTableName"] = "w_resumo_calculo";
$proto114=array();
$proto114["m_sql"] = "";
$proto114["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
												$proto116=array();
$proto116["m_link"] = "SQLL_CROSSJOIN";
			$proto117=array();
$proto117["m_strName"] = "tb_negociado";
$proto117["m_srcTableName"] = "w_resumo_calculo";
$proto117["m_columns"] = array();
$proto117["m_columns"][] = "negocioID";
$proto117["m_columns"][] = "pdtoID";
$proto117["m_columns"][] = "data";
$proto117["m_columns"][] = "pv_minimo";
$proto117["m_columns"][] = "pv_negociado";
$proto117["m_columns"][] = "ped_minimo";
$proto117["m_columns"][] = "validade";
$proto117["m_columns"][] = "mciD";
$proto117["m_columns"][] = "condicao";
$obj = new SQLTable($proto117);

$proto116["m_table"] = $obj;
$proto116["m_sql"] = "tb_negociado";
$proto116["m_alias"] = "";
$proto116["m_srcTableName"] = "w_resumo_calculo";
$proto118=array();
$proto118["m_sql"] = "";
$proto118["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
												$proto120=array();
$proto120["m_link"] = "SQLL_CROSSJOIN";
			$proto121=array();
$proto121["m_strName"] = "tb_clientes";
$proto121["m_srcTableName"] = "w_resumo_calculo";
$proto121["m_columns"] = array();
$proto121["m_columns"][] = "clienteID";
$proto121["m_columns"][] = "cliente";
$proto121["m_columns"][] = "empresa";
$proto121["m_columns"][] = "data_cadastro";
$proto121["m_columns"][] = "whats";
$proto121["m_columns"][] = "email";
$proto121["m_columns"][] = "ativar";
$obj = new SQLTable($proto121);

$proto120["m_table"] = $obj;
$proto120["m_sql"] = "tb_clientes";
$proto120["m_alias"] = "";
$proto120["m_srcTableName"] = "w_resumo_calculo";
$proto122=array();
$proto122["m_sql"] = "";
$proto122["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_w_resumo_calculo = createSqlQuery_w_resumo_calculo();


	
		;

																																					

$tdataw_resumo_calculo[".sqlquery"] = $queryData_w_resumo_calculo;

$tableEvents["w_resumo_calculo"] = new eventsBase;
$tdataw_resumo_calculo[".hasEvents"] = false;

?>