<?php
$tdataCustomer_List_Summary___RO=array();
	$tdataCustomer_List_Summary___RO[".ShortName"]="Customer_List_Summary___RO";
	$tdataCustomer_List_Summary___RO[".OwnerID"]="Region";
	$tdataCustomer_List_Summary___RO[".OriginalTable"]="customer_list";


	
//	field labels
$fieldLabelsCustomer_List_Summary___RO = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsCustomer_List_Summary___RO["English"]=array();
	$fieldToolTipsCustomer_List_Summary___RO["English"]=array();
	$fieldLabelsCustomer_List_Summary___RO["English"]["Region"] = "Region";
	$fieldToolTipsCustomer_List_Summary___RO["English"]["Region"] = "";
	$fieldLabelsCustomer_List_Summary___RO["English"]["Customer_Category"] = "Customer Category";
	$fieldToolTipsCustomer_List_Summary___RO["English"]["Customer_Category"] = "";
	$fieldLabelsCustomer_List_Summary___RO["English"]["Nos"] = "Nos";
	$fieldToolTipsCustomer_List_Summary___RO["English"]["Nos"] = "";
	if (count($fieldToolTipsCustomer_List_Summary___RO["English"])){
		$tdataCustomer_List_Summary___RO[".isUseToolTips"]=true;
	}
}


	
	$tdataCustomer_List_Summary___RO[".NCSearch"]=true;

	
	$tdataCustomer_List_Summary___RO[".ChartRefreshTime"] = 0;

$tdataCustomer_List_Summary___RO[".shortTableName"] = "Customer_List_Summary___RO";
$tdataCustomer_List_Summary___RO[".nSecOptions"] = 1;
$tdataCustomer_List_Summary___RO[".recsPerRowList"] = 1;	
$tdataCustomer_List_Summary___RO[".tableGroupBy"] = "1";
$tdataCustomer_List_Summary___RO[".mainTableOwnerID"] = "Region";
$tdataCustomer_List_Summary___RO[".moveNext"] = 1;




$tdataCustomer_List_Summary___RO[".showAddInPopup"] = false;

$tdataCustomer_List_Summary___RO[".showEditInPopup"] = false;

$tdataCustomer_List_Summary___RO[".showViewInPopup"] = false;


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

$tdataCustomer_List_Summary___RO[".listAjax"] = false;

	$tdataCustomer_List_Summary___RO[".audit"] = false;

	$tdataCustomer_List_Summary___RO[".locking"] = false;
	
$tdataCustomer_List_Summary___RO[".listIcons"] = true;
$tdataCustomer_List_Summary___RO[".edit"] = true;
$tdataCustomer_List_Summary___RO[".inlineEdit"] = true;
$tdataCustomer_List_Summary___RO[".view"] = true;



$tdataCustomer_List_Summary___RO[".delete"] = true;

$tdataCustomer_List_Summary___RO[".showSimpleSearchOptions"] = false;

$tdataCustomer_List_Summary___RO[".showSearchPanel"] = true;


$tdataCustomer_List_Summary___RO[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdataCustomer_List_Summary___RO[".addPageEvents"] = false;


// use datepicker for search panel
$tdataCustomer_List_Summary___RO[".isUseCalendarForSearch"] = false;

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

$tdataCustomer_List_Summary___RO[".isUseiBox"] = false;



$tdataCustomer_List_Summary___RO[".isUseInlineJs"] = $tdataCustomer_List_Summary___RO[".isUseInlineAdd"] || $tdataCustomer_List_Summary___RO[".isUseInlineEdit"];

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

$tdataCustomer_List_Summary___RO[".globSearchFields"][] = "Nos";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Nos", $tdataCustomer_List_Summary___RO[".allSearchFields"]))
{
	$tdataCustomer_List_Summary___RO[".allSearchFields"][] = "Nos";	
}
$tdataCustomer_List_Summary___RO[".globSearchFields"][] = "Customer_Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Customer_Category", $tdataCustomer_List_Summary___RO[".allSearchFields"]))
{
	$tdataCustomer_List_Summary___RO[".allSearchFields"][] = "Customer_Category";	
}
$tdataCustomer_List_Summary___RO[".globSearchFields"][] = "Region";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Region", $tdataCustomer_List_Summary___RO[".allSearchFields"]))
{
	$tdataCustomer_List_Summary___RO[".allSearchFields"][] = "Region";	
}


$tdataCustomer_List_Summary___RO[".googleLikeFields"][] = "Nos";
$tdataCustomer_List_Summary___RO[".googleLikeFields"][] = "Customer_Category";
$tdataCustomer_List_Summary___RO[".googleLikeFields"][] = "Region";



$tdataCustomer_List_Summary___RO[".advSearchFields"][] = "Nos";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Nos", $tdataCustomer_List_Summary___RO[".allSearchFields"])) 
{
	$tdataCustomer_List_Summary___RO[".allSearchFields"][] = "Nos";	
}
$tdataCustomer_List_Summary___RO[".advSearchFields"][] = "Customer_Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Customer_Category", $tdataCustomer_List_Summary___RO[".allSearchFields"])) 
{
	$tdataCustomer_List_Summary___RO[".allSearchFields"][] = "Customer_Category";	
}
$tdataCustomer_List_Summary___RO[".advSearchFields"][] = "Region";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Region", $tdataCustomer_List_Summary___RO[".allSearchFields"])) 
{
	$tdataCustomer_List_Summary___RO[".allSearchFields"][] = "Region";	
}

$tdataCustomer_List_Summary___RO[".isTableType"] = "chart";


	

$tdataCustomer_List_Summary___RO[".isDisplayLoading"] = true;

$tdataCustomer_List_Summary___RO[".isResizeColumns"] = false;




$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataCustomer_List_Summary___RO[".strOrderBy"] = $gstrOrderBy;
	
$tdataCustomer_List_Summary___RO[".orderindexes"] = array();

$tdataCustomer_List_Summary___RO[".sqlHead"] = "SELECT COUNT(idCL) AS Nos,  Customer_Category,  Region";
$tdataCustomer_List_Summary___RO[".sqlFrom"] = "FROM customer_list";
$tdataCustomer_List_Summary___RO[".sqlWhereExpr"] = "";
$tdataCustomer_List_Summary___RO[".sqlTail"] = "GROUP BY Customer_Category";




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

	$tableKeys = array();
	$tdataCustomer_List_Summary___RO[".Keys"] = $tableKeys;

//	Nos
	$fdata = array();
	$fdata["strName"] = "Nos";
	$fdata["ownerTable"] = "";
		
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Nos";
	
		$fdata["FullName"]= "COUNT(idCL)";
	
		
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataCustomer_List_Summary___RO["Nos"]=$fdata;
//	Customer_Category
	$fdata = array();
	$fdata["strName"] = "Customer_Category";
	$fdata["ownerTable"] = "customer_list";
		$fdata["Label"]="Customer Category"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Category";
	
		$fdata["FullName"]= "Customer_Category";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataCustomer_List_Summary___RO["Customer_Category"]=$fdata;
//	Region
	$fdata = array();
	$fdata["strName"] = "Region";
	$fdata["ownerTable"] = "customer_list";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Region";
	
		$fdata["FullName"]= "Region";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataCustomer_List_Summary___RO["Region"]=$fdata;

$tdataCustomer_List_Summary___RO[".chartXml"] = '<chart>
<attr value="tables">
	<attr value="0">Customer List Summary - RO</attr>
</attr>
<attr value="chart_type">
	<attr value="type">2d_pie</attr>
</attr>

<attr value="parameters">
<attr value="0">
<attr value="name">Nos</attr>
<attr value="currencyFormat">0</attr>
<attr value="decimalFormat">2</attr>
<attr value="customFormat">0</attr>
<attr value="customFormatStr"></attr>
</attr>
<attr value="1">
<attr value="name">Customer_Category</attr>
</attr>
</attr>


<attr value="appearance">
	<attr value="scolor11">FF0000</attr>
	<attr value="scolor12">FF0000</attr>

<attr value="head">'.xmlencode("Customer List - Summary - Regional").'</attr>
<attr value="foot">'.xmlencode("Customer Category").'</attr>

<attr value="color51">49563A</attr>
<attr value="color52">49563A</attr>
<attr value="color61">49563A</attr>
<attr value="color62">49563A</attr>
<attr value="color71">C7CDC1</attr>
<attr value="color72">C7CDC1</attr>
<attr value="color81">ECF0E8</attr>
<attr value="color82">ECF0E8</attr>
<attr value="color91">68838B</attr>
<attr value="color92">68838B</attr>
<attr value="color101">48505A</attr>
<attr value="color102">48505A</attr>
<attr value="color111">45595F</attr>
<attr value="color112">45595F</attr>
<attr value="color121"></attr>
<attr value="color122"></attr>
<attr value="color131">000000</attr>
<attr value="color132">000000</attr>
<attr value="color141">000000</attr>
<attr value="color142">000000</attr>

<attr value="slegend">true</attr>
<attr value="sgrid">true</attr>
<attr value="sname">true</attr>
<attr value="sval">true</attr>
<attr value="sanim">true</attr>
<attr value="sstacked">false</attr>
<attr value="saxes">false</attr>
<attr value="slog">false</attr>
<attr value="aqua">0</attr>
<attr value="cview">0</attr>
<attr value="is3d">1</attr>
<attr value="isstacked">0</attr>
<attr value="linestyle">0</attr>
<attr value="autoupdate">0</attr>
<attr value="autoupmin">5</attr>
<attr value="cscroll">true</attr>
<attr value="maxbarscroll">10</attr>
</attr>

<attr value="fields">
	<attr value="0">
		<attr value="name">Nos</attr>
		<attr value="label">Nos</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="1">
		<attr value="name">Customer_Category</attr>
		<attr value="label">Customer Category</attr>
		<attr value="search"></attr>
	</attr>
	<attr value="2">
		<attr value="name">Region</attr>
		<attr value="label">Region</attr>
		<attr value="search"></attr>
	</attr>
</attr>


<attr value="settings">
<attr value="name">idCL</attr>
<attr value="short_table_name">Customer_List_Summary___RO</attr>
</attr>

</chart>';
	
$tables_data["Customer List Summary - RO"]=&$tdataCustomer_List_Summary___RO;
$field_labels["Customer_List_Summary___RO"] = &$fieldLabelsCustomer_List_Summary___RO;
$fieldToolTips["Customer List Summary - RO"] = &$fieldToolTipsCustomer_List_Summary___RO;

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

	
// tables which are master tables for current table (detail)
$masterTablesData["Customer List Summary - RO"] = array();

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

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










$proto18=array();
$proto18["m_strHead"] = "SELECT";
$proto18["m_strFieldList"] = "COUNT(idCL) AS Nos,  Customer_Category,  Region";
$proto18["m_strFrom"] = "FROM customer_list";
$proto18["m_strWhere"] = "";
$proto18["m_strOrderBy"] = "";
$proto18["m_strTail"] = "GROUP BY Customer_Category";
$proto19=array();
$proto19["m_sql"] = "";
$proto19["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto18["m_having"] = $obj;
$proto18["m_fieldlist"] = array();
						$proto23=array();
			$proto24=array();
$proto24["m_functiontype"] = "SQLF_COUNT";
$proto24["m_arguments"] = array();
						$obj = new SQLField(array(
	"m_strName" => "idCL",
	"m_strTable" => "customer_list"
));

$proto24["m_arguments"][]=$obj;
$proto24["m_strFunctionName"] = "COUNT";
$obj = new SQLFunctionCall($proto24);

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

$proto18["m_fieldlist"][]=$obj;
						$proto26=array();
			$obj = new SQLField(array(
	"m_strName" => "Customer_Category",
	"m_strTable" => "customer_list"
));

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

$proto18["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "Region",
	"m_strTable" => "customer_list"
));

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

$proto18["m_fieldlist"][]=$obj;
$proto18["m_fromlist"] = array();
												$proto30=array();
$proto30["m_link"] = "SQLL_MAIN";
			$proto31=array();
$proto31["m_strName"] = "customer_list";
$proto31["m_columns"] = array();
$proto31["m_columns"][] = "idCL";
$proto31["m_columns"][] = "Created on";
$proto31["m_columns"][] = "Region";
$proto31["m_columns"][] = "Customer Name";
$proto31["m_columns"][] = "Address";
$proto31["m_columns"][] = "City";
$proto31["m_columns"][] = "State";
$proto31["m_columns"][] = "Country";
$proto31["m_columns"][] = "Postal Code";
$proto31["m_columns"][] = "Web address";
$proto31["m_columns"][] = "Area";
$proto31["m_columns"][] = "Customer_Category";
$proto31["m_columns"][] = "Breif About the Company";
$proto31["m_columns"][] = "Existing Setup";
$proto31["m_columns"][] = "Interaction Summary";
$proto31["m_columns"][] = "Commercial Summary";
$proto31["m_columns"][] = "Customer Status";
$proto31["m_columns"][] = "Assigned Executive";
$proto31["m_columns"][] = "Assigned Date";
$proto31["m_columns"][] = "Last Updated on";
$proto31["m_columns"][] = "Aligned Partner";
$obj = new SQLTable($proto31);

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

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

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

$proto18["m_fromlist"][]=$obj;
$proto18["m_groupby"] = array();
												$proto34=array();
						$obj = new SQLField(array(
	"m_strName" => "Customer_Category",
	"m_strTable" => "customer_list"
));

$proto34["m_column"]=$obj;
$obj = new SQLGroupByItem($proto34);

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

$queryData_Customer_List_Summary___RO = $obj;
$tdataCustomer_List_Summary___RO[".sqlquery"] = $queryData_Customer_List_Summary___RO;

$tableEvents["Customer List Summary - RO"] = new eventsBase;

?>
