<?php
$tdataMy_Planned_Visits=array();
	$tdataMy_Planned_Visits[".NumberOfChars"]=80; 
	$tdataMy_Planned_Visits[".ShortName"]="My_Planned_Visits";
	$tdataMy_Planned_Visits[".OwnerID"]="Employee Name";
	$tdataMy_Planned_Visits[".OriginalTable"]="visit_register";


	
//	field labels
$fieldLabelsMy_Planned_Visits = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsMy_Planned_Visits["English"]=array();
	$fieldToolTipsMy_Planned_Visits["English"]=array();
	$fieldLabelsMy_Planned_Visits["English"]["idvisit_register"] = "Idvisit Register";
	$fieldToolTipsMy_Planned_Visits["English"]["idvisit_register"] = "";
	$fieldLabelsMy_Planned_Visits["English"]["Customer_Name"] = "Customer Name";
	$fieldToolTipsMy_Planned_Visits["English"]["Customer Name"] = "";
	$fieldLabelsMy_Planned_Visits["English"]["Contact_Person"] = "Contact Person";
	$fieldToolTipsMy_Planned_Visits["English"]["Contact Person"] = "";
	$fieldLabelsMy_Planned_Visits["English"]["Purpose_Of_Visit"] = "Purpose Of Visit";
	$fieldToolTipsMy_Planned_Visits["English"]["Purpose Of Visit"] = "";
	$fieldLabelsMy_Planned_Visits["English"]["Date_Of_Visit"] = "Date Of Visit";
	$fieldToolTipsMy_Planned_Visits["English"]["Date Of Visit"] = "";
	$fieldLabelsMy_Planned_Visits["English"]["Visit_Status"] = "Visit Status";
	$fieldToolTipsMy_Planned_Visits["English"]["Visit Status"] = "";
	$fieldLabelsMy_Planned_Visits["English"]["Employee_Name"] = "Employee Name";
	$fieldToolTipsMy_Planned_Visits["English"]["Employee Name"] = "";
	if (count($fieldToolTipsMy_Planned_Visits["English"])){
		$tdataMy_Planned_Visits[".isUseToolTips"]=true;
	}
}


	
	$tdataMy_Planned_Visits[".NCSearch"]=true;

	

$tdataMy_Planned_Visits[".shortTableName"] = "My_Planned_Visits";
$tdataMy_Planned_Visits[".nSecOptions"] = 1;
$tdataMy_Planned_Visits[".recsPerRowList"] = 1;	
$tdataMy_Planned_Visits[".tableGroupBy"] = "0";
$tdataMy_Planned_Visits[".mainTableOwnerID"] = "Employee Name";
$tdataMy_Planned_Visits[".moveNext"] = 1;




$tdataMy_Planned_Visits[".showAddInPopup"] = false;

$tdataMy_Planned_Visits[".showEditInPopup"] = false;

$tdataMy_Planned_Visits[".showViewInPopup"] = false;


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

$tdataMy_Planned_Visits[".listAjax"] = false;

	$tdataMy_Planned_Visits[".audit"] = false;

	$tdataMy_Planned_Visits[".locking"] = false;
	
$tdataMy_Planned_Visits[".listIcons"] = true;




$tdataMy_Planned_Visits[".showSimpleSearchOptions"] = false;

$tdataMy_Planned_Visits[".showSearchPanel"] = true;


$tdataMy_Planned_Visits[".isUseAjaxSuggest"] = true;

$tdataMy_Planned_Visits[".rowHighlite"] = true;


// button handlers file names

$tdataMy_Planned_Visits[".addPageEvents"] = false;

$tdataMy_Planned_Visits[".arrKeyFields"][] = "idvisit_register";

// use datepicker for search panel
$tdataMy_Planned_Visits[".isUseCalendarForSearch"] = true;

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

$tdataMy_Planned_Visits[".isUseiBox"] = false;




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

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

$tdataMy_Planned_Visits[".globSearchFields"][] = "idvisit_register";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("idvisit_register", $tdataMy_Planned_Visits[".allSearchFields"]))
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "idvisit_register";	
}
$tdataMy_Planned_Visits[".globSearchFields"][] = "Customer Name";
// 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 Name", $tdataMy_Planned_Visits[".allSearchFields"]))
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Customer Name";	
}
$tdataMy_Planned_Visits[".globSearchFields"][] = "Contact Person";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Contact Person", $tdataMy_Planned_Visits[".allSearchFields"]))
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Contact Person";	
}
$tdataMy_Planned_Visits[".globSearchFields"][] = "Purpose Of Visit";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Purpose Of Visit", $tdataMy_Planned_Visits[".allSearchFields"]))
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Purpose Of Visit";	
}
$tdataMy_Planned_Visits[".globSearchFields"][] = "Date Of Visit";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Date Of Visit", $tdataMy_Planned_Visits[".allSearchFields"]))
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Date Of Visit";	
}
$tdataMy_Planned_Visits[".globSearchFields"][] = "Visit Status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Visit Status", $tdataMy_Planned_Visits[".allSearchFields"]))
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Visit Status";	
}


$tdataMy_Planned_Visits[".googleLikeFields"][] = "idvisit_register";
$tdataMy_Planned_Visits[".googleLikeFields"][] = "Customer Name";
$tdataMy_Planned_Visits[".googleLikeFields"][] = "Contact Person";
$tdataMy_Planned_Visits[".googleLikeFields"][] = "Purpose Of Visit";
$tdataMy_Planned_Visits[".googleLikeFields"][] = "Date Of Visit";
$tdataMy_Planned_Visits[".googleLikeFields"][] = "Visit Status";
$tdataMy_Planned_Visits[".googleLikeFields"][] = "Employee Name";



$tdataMy_Planned_Visits[".advSearchFields"][] = "idvisit_register";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("idvisit_register", $tdataMy_Planned_Visits[".allSearchFields"])) 
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "idvisit_register";	
}
$tdataMy_Planned_Visits[".advSearchFields"][] = "Customer Name";
// 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 Name", $tdataMy_Planned_Visits[".allSearchFields"])) 
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Customer Name";	
}
$tdataMy_Planned_Visits[".advSearchFields"][] = "Contact Person";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Contact Person", $tdataMy_Planned_Visits[".allSearchFields"])) 
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Contact Person";	
}
$tdataMy_Planned_Visits[".advSearchFields"][] = "Purpose Of Visit";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Purpose Of Visit", $tdataMy_Planned_Visits[".allSearchFields"])) 
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Purpose Of Visit";	
}
$tdataMy_Planned_Visits[".advSearchFields"][] = "Date Of Visit";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Date Of Visit", $tdataMy_Planned_Visits[".allSearchFields"])) 
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Date Of Visit";	
}
$tdataMy_Planned_Visits[".advSearchFields"][] = "Visit Status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Visit Status", $tdataMy_Planned_Visits[".allSearchFields"])) 
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Visit Status";	
}
$tdataMy_Planned_Visits[".advSearchFields"][] = "Employee Name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Employee Name", $tdataMy_Planned_Visits[".allSearchFields"])) 
{
	$tdataMy_Planned_Visits[".allSearchFields"][] = "Employee Name";	
}

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


	

$tdataMy_Planned_Visits[".isDisplayLoading"] = true;

$tdataMy_Planned_Visits[".isResizeColumns"] = false;





$tdataMy_Planned_Visits[".pageSize"] = 5;

$gstrOrderBy = "ORDER BY `Date Of Visit` DESC";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataMy_Planned_Visits[".strOrderBy"] = $gstrOrderBy;
	
$tdataMy_Planned_Visits[".orderindexes"] = array();
$tdataMy_Planned_Visits[".orderindexes"][] = array(5, (0 ? "ASC" : "DESC"), "`Date Of Visit`");

$tdataMy_Planned_Visits[".sqlHead"] = "SELECT idvisit_register,  `Customer Name`,  `Contact Person`,  `Purpose Of Visit`,  `Date Of Visit`,  `Visit Status`,  `Employee Name`";
$tdataMy_Planned_Visits[".sqlFrom"] = "FROM visit_register";
$tdataMy_Planned_Visits[".sqlWhereExpr"] = "(`Visit Status` =\"Planned\")";
$tdataMy_Planned_Visits[".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;
$tdataMy_Planned_Visits[".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;
$tdataMy_Planned_Visits[".arrGroupsPerPage"] = $arrGPP;

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

//	idvisit_register
	$fdata = array();
	$fdata["strName"] = "idvisit_register";
	$fdata["ownerTable"] = "visit_register";
		$fdata["Label"]="Idvisit Register"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "idvisit_register";
	
		$fdata["FullName"]= "idvisit_register";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Planned_Visits["idvisit_register"]=$fdata;
//	Customer Name
	$fdata = array();
	$fdata["strName"] = "Customer Name";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Name";
	
		$fdata["FullName"]= "`Customer Name`";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Planned_Visits["Customer Name"]=$fdata;
//	Contact Person
	$fdata = array();
	$fdata["strName"] = "Contact Person";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Contact_Person";
	
		$fdata["FullName"]= "`Contact Person`";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Planned_Visits["Contact Person"]=$fdata;
//	Purpose Of Visit
	$fdata = array();
	$fdata["strName"] = "Purpose Of Visit";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Purpose_Of_Visit";
	
		$fdata["FullName"]= "`Purpose Of Visit`";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Planned_Visits["Purpose Of Visit"]=$fdata;
//	Date Of Visit
	$fdata = array();
	$fdata["strName"] = "Date Of Visit";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 135;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Date_Of_Visit";
	
		$fdata["FullName"]= "`Date Of Visit`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 5;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Planned_Visits["Date Of Visit"]=$fdata;
//	Visit Status
	$fdata = array();
	$fdata["strName"] = "Visit Status";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Visit_Status";
	
		$fdata["FullName"]= "`Visit Status`";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMy_Planned_Visits["Visit Status"]=$fdata;
//	Employee Name
	$fdata = array();
	$fdata["strName"] = "Employee Name";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Employee_Name";
	
		$fdata["FullName"]= "`Employee Name`";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
				
		
		
		
			$tdataMy_Planned_Visits["Employee Name"]=$fdata;

	
$tables_data["My Planned Visits"]=&$tdataMy_Planned_Visits;
$field_labels["My_Planned_Visits"] = &$fieldLabelsMy_Planned_Visits;
$fieldToolTips["My Planned Visits"] = &$fieldToolTipsMy_Planned_Visits;

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

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

$mIndex = 1-1;
			$strOriginalDetailsTable="employee_list";
	$masterTablesData["My Planned Visits"][$mIndex] = array(
		  "mDataSourceTable"=>"My Home"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "My_Home"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 1
	);	
		$masterTablesData["My Planned Visits"][$mIndex]["masterKeys"][]="username";
		$masterTablesData["My Planned Visits"][$mIndex]["detailKeys"][]="Employee Name";

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

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










$proto280=array();
$proto280["m_strHead"] = "SELECT";
$proto280["m_strFieldList"] = "idvisit_register,  `Customer Name`,  `Contact Person`,  `Purpose Of Visit`,  `Date Of Visit`,  `Visit Status`,  `Employee Name`";
$proto280["m_strFrom"] = "FROM visit_register";
$proto280["m_strWhere"] = "(`Visit Status` =\"Planned\")";
$proto280["m_strOrderBy"] = "ORDER BY `Date Of Visit` DESC";
$proto280["m_strTail"] = "";
$proto281=array();
$proto281["m_sql"] = "`Visit Status` =\"Planned\"";
$proto281["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "Visit Status",
	"m_strTable" => "visit_register"
));

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

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

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

$proto280["m_having"] = $obj;
$proto280["m_fieldlist"] = array();
						$proto285=array();
			$obj = new SQLField(array(
	"m_strName" => "idvisit_register",
	"m_strTable" => "visit_register"
));

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

$proto280["m_fieldlist"][]=$obj;
						$proto287=array();
			$obj = new SQLField(array(
	"m_strName" => "Customer Name",
	"m_strTable" => "visit_register"
));

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

$proto280["m_fieldlist"][]=$obj;
						$proto289=array();
			$obj = new SQLField(array(
	"m_strName" => "Contact Person",
	"m_strTable" => "visit_register"
));

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

$proto280["m_fieldlist"][]=$obj;
						$proto291=array();
			$obj = new SQLField(array(
	"m_strName" => "Purpose Of Visit",
	"m_strTable" => "visit_register"
));

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

$proto280["m_fieldlist"][]=$obj;
						$proto293=array();
			$obj = new SQLField(array(
	"m_strName" => "Date Of Visit",
	"m_strTable" => "visit_register"
));

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

$proto280["m_fieldlist"][]=$obj;
						$proto295=array();
			$obj = new SQLField(array(
	"m_strName" => "Visit Status",
	"m_strTable" => "visit_register"
));

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

$proto280["m_fieldlist"][]=$obj;
						$proto297=array();
			$obj = new SQLField(array(
	"m_strName" => "Employee Name",
	"m_strTable" => "visit_register"
));

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

$proto280["m_fieldlist"][]=$obj;
$proto280["m_fromlist"] = array();
												$proto299=array();
$proto299["m_link"] = "SQLL_MAIN";
			$proto300=array();
$proto300["m_strName"] = "visit_register";
$proto300["m_columns"] = array();
$proto300["m_columns"][] = "idvisit_register";
$proto300["m_columns"][] = "Lead_ID";
$proto300["m_columns"][] = "Recorded Date";
$proto300["m_columns"][] = "Employee Name";
$proto300["m_columns"][] = "Customer Name";
$proto300["m_columns"][] = "Contact Person";
$proto300["m_columns"][] = "Purpose Of Visit";
$proto300["m_columns"][] = "MOM Summary";
$proto300["m_columns"][] = "Voucher Status";
$proto300["m_columns"][] = "Date Of Visit";
$proto300["m_columns"][] = "Mode Of Travel";
$proto300["m_columns"][] = "Travel Expense";
$proto300["m_columns"][] = "Expense Remarks";
$proto300["m_columns"][] = "Visit Status";
$proto300["m_columns"][] = "Reporting Manager";
$proto300["m_columns"][] = "Approved Expense";
$proto300["m_columns"][] = "Approved Date";
$proto300["m_columns"][] = "Voucher Processed Date";
$proto300["m_columns"][] = "Expense Claim Date";
$obj = new SQLTable($proto300);

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

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

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

$proto280["m_fromlist"][]=$obj;
$proto280["m_groupby"] = array();
$proto280["m_orderby"] = array();
												$proto303=array();
						$obj = new SQLField(array(
	"m_strName" => "Date Of Visit",
	"m_strTable" => "visit_register"
));

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

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

$queryData_My_Planned_Visits = $obj;
$tdataMy_Planned_Visits[".sqlquery"] = $queryData_My_Planned_Visits;

$tableEvents["My Planned Visits"] = new eventsBase;

?>
