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


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


	
	$tdataVisit_Update[".NCSearch"]=true;

	

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




$tdataVisit_Update[".showAddInPopup"] = false;

$tdataVisit_Update[".showEditInPopup"] = false;

$tdataVisit_Update[".showViewInPopup"] = false;


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

$tdataVisit_Update[".listAjax"] = false;

	$tdataVisit_Update[".audit"] = false;

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



$tdataVisit_Update[".delete"] = true;

$tdataVisit_Update[".showSimpleSearchOptions"] = false;

$tdataVisit_Update[".showSearchPanel"] = true;


$tdataVisit_Update[".isUseAjaxSuggest"] = true;

$tdataVisit_Update[".rowHighlite"] = true;


// button handlers file names

$tdataVisit_Update[".addPageEvents"] = false;

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

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

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

$tdataVisit_Update[".isUseiBox"] = false;




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

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

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


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



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

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


	

$tdataVisit_Update[".isDisplayLoading"] = true;

$tdataVisit_Update[".isResizeColumns"] = false;





$tdataVisit_Update[".pageSize"] = 20;

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

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

	$tableKeys = array();
	$tableKeys[] = "idvisit_register";
	$tdataVisit_Update[".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["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataVisit_Update["idvisit_register"]=$fdata;
//	Employee Name
	$fdata = array();
	$fdata["strName"] = "Employee Name";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="username";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Full Name";
				$fdata["LookupTable"]="employee_list";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Employee_Name";
	
		$fdata["FullName"]= "`Employee Name`";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataVisit_Update["Employee Name"]=$fdata;
//	Customer Name
	$fdata = array();
	$fdata["strName"] = "Customer Name";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="Customer Name";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Customer Name";
				$fdata["LookupTable"]="customer_list";
	$fdata["LookupOrderBy"]="Customer Name";
																			$fdata["SimpleAdd"]=true;
	
				//	dependent dropdowns	
	$fdata["DependentLookups"]=array();
	$fdata["DependentLookups"][]="Contact Person";
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Customer_Name";
	
		$fdata["FullName"]= "`Customer Name`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataVisit_Update["Customer Name"]=$fdata;
//	Contact Person
	$fdata = array();
	$fdata["strName"] = "Contact Person";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="Name";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Name";
				$fdata["LookupTable"]="cust_list_contact_person";
	$fdata["LookupOrderBy"]="Name";
										$fdata["UseCategory"]=true; 
	$fdata["CategoryControl"]="Customer Name"; 
	$fdata["CategoryFilter"]="Company Name"; 
										$fdata["SimpleAdd"]=true;
	
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Contact_Person";
	
		$fdata["FullName"]= "`Contact Person`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataVisit_Update["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"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="Purpose Of Visit";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="Purpose Of Visit";
				$fdata["LookupTable"]="purpose_of_visit";
	$fdata["LookupOrderBy"]="Purpose Of Visit";
																			$fdata["SimpleAdd"]=true;
	
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Purpose_Of_Visit";
	
		$fdata["FullName"]= "`Purpose Of Visit`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 5;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataVisit_Update["Purpose Of Visit"]=$fdata;
//	MOM Summary
	$fdata = array();
	$fdata["strName"] = "MOM Summary";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "MOM_Summary";
	
		$fdata["FullName"]= "`MOM Summary`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 6;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=500";
		$fdata["nCols"] = 500;
		
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataVisit_Update["MOM Summary"]=$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"]= 7;
		$fdata["DateEditType"] = 11; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataVisit_Update["Date Of Visit"]=$fdata;
//	Visit Status
	$fdata = array();
	$fdata["strName"] = "Visit Status";
	$fdata["ownerTable"] = "visit_register";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=0;
	$fdata["pLookupType"] = 0;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
									$fdata["LookupValues"]=array();
	$fdata["LookupValues"][]="Planned";
	$fdata["LookupValues"][]="Completed";
	$fdata["LookupValues"][]="Cancelled";
			
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Visit_Status";
	
		$fdata["FullName"]= "`Visit Status`";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataVisit_Update["Visit Status"]=$fdata;

	
$tables_data["Visit Update"]=&$tdataVisit_Update;
$field_labels["Visit_Update"] = &$fieldLabelsVisit_Update;
$fieldToolTips["Visit Update"] = &$fieldToolTipsVisit_Update;

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

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

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

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










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

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto250["m_fieldlist"][]=$obj;
						$proto265=array();
			$obj = new SQLField(array(
	"m_strName" => "MOM Summary",
	"m_strTable" => "visit_register"
));

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

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

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

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

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

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

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

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

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

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

$queryData_Visit_Update = $obj;
$tdataVisit_Update[".sqlquery"] = $queryData_Visit_Update;

include(getabspath("include/Visit_Update_events.php"));
$tableEvents["Visit Update"] = new eventclass_Visit_Update;

?>
