<?php
$tdatadepartment=array();
	$tdatadepartment[".NumberOfChars"]=80; 
	$tdatadepartment[".ShortName"]="department";
	$tdatadepartment[".OwnerID"]="";
	$tdatadepartment[".OriginalTable"]="department";


	
//	field labels
$fieldLabelsdepartment = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsdepartment["English"]=array();
	$fieldToolTipsdepartment["English"]=array();
	$fieldLabelsdepartment["English"]["iddept"] = "Iddept";
	$fieldToolTipsdepartment["English"]["iddept"] = "";
	$fieldLabelsdepartment["English"]["Department"] = "Department";
	$fieldToolTipsdepartment["English"]["Department"] = "";
	$fieldLabelsdepartment["English"]["Description"] = "Description";
	$fieldToolTipsdepartment["English"]["Description"] = "";
	if (count($fieldToolTipsdepartment["English"])){
		$tdatadepartment[".isUseToolTips"]=true;
	}
}


	
	$tdatadepartment[".NCSearch"]=true;

	

$tdatadepartment[".shortTableName"] = "department";
$tdatadepartment[".nSecOptions"] = 0;
$tdatadepartment[".recsPerRowList"] = 1;	
$tdatadepartment[".tableGroupBy"] = "0";
$tdatadepartment[".mainTableOwnerID"] = "";
$tdatadepartment[".moveNext"] = 1;




$tdatadepartment[".showAddInPopup"] = false;

$tdatadepartment[".showEditInPopup"] = false;

$tdatadepartment[".showViewInPopup"] = false;


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

$tdatadepartment[".listAjax"] = false;

	$tdatadepartment[".audit"] = false;

	$tdatadepartment[".locking"] = false;
	
$tdatadepartment[".listIcons"] = true;
$tdatadepartment[".inlineEdit"] = true;




$tdatadepartment[".showSimpleSearchOptions"] = false;

$tdatadepartment[".showSearchPanel"] = true;


$tdatadepartment[".isUseAjaxSuggest"] = true;

$tdatadepartment[".rowHighlite"] = true;


// button handlers file names

$tdatadepartment[".addPageEvents"] = false;

$tdatadepartment[".arrKeyFields"][] = "iddept";

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

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

$tdatadepartment[".isUseiBox"] = false;




$tdatadepartment[".isUseInlineEdit"] = true;
$tdatadepartment[".isUseInlineJs"] = $tdatadepartment[".isUseInlineAdd"] || $tdatadepartment[".isUseInlineEdit"];

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

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


$tdatadepartment[".googleLikeFields"][] = "iddept";
$tdatadepartment[".googleLikeFields"][] = "Department";
$tdatadepartment[".googleLikeFields"][] = "Description";



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

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


	

$tdatadepartment[".isDisplayLoading"] = true;

$tdatadepartment[".isResizeColumns"] = false;





$tdatadepartment[".pageSize"] = 20;

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

$tdatadepartment[".sqlHead"] = "SELECT iddept,   Department,   Description";
$tdatadepartment[".sqlFrom"] = "FROM department";
$tdatadepartment[".sqlWhereExpr"] = "";
$tdatadepartment[".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;
$tdatadepartment[".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;
$tdatadepartment[".arrGroupsPerPage"] = $arrGPP;

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

//	iddept
	$fdata = array();
	$fdata["strName"] = "iddept";
	$fdata["ownerTable"] = "department";
		$fdata["Label"]="Iddept"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "iddept";
	
		$fdata["FullName"]= "iddept";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatadepartment["iddept"]=$fdata;
//	Department
	$fdata = array();
	$fdata["strName"] = "Department";
	$fdata["ownerTable"] = "department";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Department";
	
		$fdata["FullName"]= "Department";
	
		
		
		
		
		
				$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;
	
		
				
		
		
		
			$tdatadepartment["Department"]=$fdata;
//	Description
	$fdata = array();
	$fdata["strName"] = "Description";
	$fdata["ownerTable"] = "department";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Description";
	
		$fdata["FullName"]= "Description";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$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;
	
		
				
		
		
		
			$tdatadepartment["Description"]=$fdata;

	
$tables_data["department"]=&$tdatadepartment;
$field_labels["department"] = &$fieldLabelsdepartment;
$fieldToolTips["department"] = &$fieldToolTipsdepartment;

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

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

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

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










$proto337=array();
$proto337["m_strHead"] = "SELECT";
$proto337["m_strFieldList"] = "iddept,   Department,   Description";
$proto337["m_strFrom"] = "FROM department";
$proto337["m_strWhere"] = "";
$proto337["m_strOrderBy"] = "";
$proto337["m_strTail"] = "";
$proto338=array();
$proto338["m_sql"] = "";
$proto338["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto337["m_having"] = $obj;
$proto337["m_fieldlist"] = array();
						$proto342=array();
			$obj = new SQLField(array(
	"m_strName" => "iddept",
	"m_strTable" => "department"
));

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

$proto337["m_fieldlist"][]=$obj;
						$proto344=array();
			$obj = new SQLField(array(
	"m_strName" => "Department",
	"m_strTable" => "department"
));

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

$proto337["m_fieldlist"][]=$obj;
						$proto346=array();
			$obj = new SQLField(array(
	"m_strName" => "Description",
	"m_strTable" => "department"
));

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

$proto337["m_fieldlist"][]=$obj;
$proto337["m_fromlist"] = array();
												$proto348=array();
$proto348["m_link"] = "SQLL_MAIN";
			$proto349=array();
$proto349["m_strName"] = "department";
$proto349["m_columns"] = array();
$proto349["m_columns"][] = "iddept";
$proto349["m_columns"][] = "Department";
$proto349["m_columns"][] = "Description";
$obj = new SQLTable($proto349);

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

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

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

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

$queryData_department = $obj;
$tdatadepartment[".sqlquery"] = $queryData_department;

$tableEvents["department"] = new eventsBase;

?>
