<?php
$tdataallocation_from_departments = array();
$tdataallocation_from_departments[".searchableFields"] = array();
$tdataallocation_from_departments[".ShortName"] = "allocation_from_departments";
$tdataallocation_from_departments[".OwnerID"] = "md";
$tdataallocation_from_departments[".OriginalTable"] = "allocation_from_departments";


$tdataallocation_from_departments[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdataallocation_from_departments[".originalPagesByType"] = $tdataallocation_from_departments[".pagesByType"];
$tdataallocation_from_departments[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdataallocation_from_departments[".originalPages"] = $tdataallocation_from_departments[".pages"];
$tdataallocation_from_departments[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdataallocation_from_departments[".originalDefaultPages"] = $tdataallocation_from_departments[".defaultPages"];

//	field labels
$fieldLabelsallocation_from_departments = array();
$fieldToolTipsallocation_from_departments = array();
$pageTitlesallocation_from_departments = array();
$placeHoldersallocation_from_departments = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsallocation_from_departments["English"] = array();
	$fieldToolTipsallocation_from_departments["English"] = array();
	$placeHoldersallocation_from_departments["English"] = array();
	$pageTitlesallocation_from_departments["English"] = array();
	$fieldLabelsallocation_from_departments["English"]["id"] = "Id";
	$fieldToolTipsallocation_from_departments["English"]["id"] = "";
	$placeHoldersallocation_from_departments["English"]["id"] = "";
	$fieldLabelsallocation_from_departments["English"]["expenditure_code"] = "Expenditure Code";
	$fieldToolTipsallocation_from_departments["English"]["expenditure_code"] = "";
	$placeHoldersallocation_from_departments["English"]["expenditure_code"] = "";
	$fieldLabelsallocation_from_departments["English"]["department_name"] = "Department Name";
	$fieldToolTipsallocation_from_departments["English"]["department_name"] = "";
	$placeHoldersallocation_from_departments["English"]["department_name"] = "";
	$fieldLabelsallocation_from_departments["English"]["amount"] = "Amount";
	$fieldToolTipsallocation_from_departments["English"]["amount"] = "";
	$placeHoldersallocation_from_departments["English"]["amount"] = "";
	$fieldLabelsallocation_from_departments["English"]["action"] = "Action";
	$fieldToolTipsallocation_from_departments["English"]["action"] = "";
	$placeHoldersallocation_from_departments["English"]["action"] = "";
	$fieldLabelsallocation_from_departments["English"]["date"] = "Date";
	$fieldToolTipsallocation_from_departments["English"]["date"] = "";
	$placeHoldersallocation_from_departments["English"]["date"] = "";
	$fieldLabelsallocation_from_departments["English"]["user"] = "User";
	$fieldToolTipsallocation_from_departments["English"]["user"] = "";
	$placeHoldersallocation_from_departments["English"]["user"] = "";
	$fieldLabelsallocation_from_departments["English"]["md"] = "Md";
	$fieldToolTipsallocation_from_departments["English"]["md"] = "";
	$placeHoldersallocation_from_departments["English"]["md"] = "";
	if (count($fieldToolTipsallocation_from_departments["English"]))
		$tdataallocation_from_departments[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="sinhala")
{
	$fieldLabelsallocation_from_departments["sinhala"] = array();
	$fieldToolTipsallocation_from_departments["sinhala"] = array();
	$placeHoldersallocation_from_departments["sinhala"] = array();
	$pageTitlesallocation_from_departments["sinhala"] = array();
	$fieldLabelsallocation_from_departments["sinhala"]["id"] = "Id";
	$fieldToolTipsallocation_from_departments["sinhala"]["id"] = "";
	$placeHoldersallocation_from_departments["sinhala"]["id"] = "";
	$fieldLabelsallocation_from_departments["sinhala"]["expenditure_code"] = "වියදම් කේතය";
	$fieldToolTipsallocation_from_departments["sinhala"]["expenditure_code"] = "";
	$placeHoldersallocation_from_departments["sinhala"]["expenditure_code"] = "";
	$fieldLabelsallocation_from_departments["sinhala"]["department_name"] = "දෙපාරතමේන්තුවේ නම";
	$fieldToolTipsallocation_from_departments["sinhala"]["department_name"] = "";
	$placeHoldersallocation_from_departments["sinhala"]["department_name"] = "";
	$fieldLabelsallocation_from_departments["sinhala"]["amount"] = "මුදල";
	$fieldToolTipsallocation_from_departments["sinhala"]["amount"] = "";
	$placeHoldersallocation_from_departments["sinhala"]["amount"] = "";
	$fieldLabelsallocation_from_departments["sinhala"]["action"] = "Action";
	$fieldToolTipsallocation_from_departments["sinhala"]["action"] = "";
	$placeHoldersallocation_from_departments["sinhala"]["action"] = "";
	$fieldLabelsallocation_from_departments["sinhala"]["date"] = "Date";
	$fieldToolTipsallocation_from_departments["sinhala"]["date"] = "";
	$placeHoldersallocation_from_departments["sinhala"]["date"] = "";
	$fieldLabelsallocation_from_departments["sinhala"]["user"] = "User";
	$fieldToolTipsallocation_from_departments["sinhala"]["user"] = "";
	$placeHoldersallocation_from_departments["sinhala"]["user"] = "";
	$fieldLabelsallocation_from_departments["sinhala"]["md"] = "Md";
	$fieldToolTipsallocation_from_departments["sinhala"]["md"] = "";
	$placeHoldersallocation_from_departments["sinhala"]["md"] = "";
	if (count($fieldToolTipsallocation_from_departments["sinhala"]))
		$tdataallocation_from_departments[".isUseToolTips"] = true;
}


	$tdataallocation_from_departments[".NCSearch"] = true;



$tdataallocation_from_departments[".shortTableName"] = "allocation_from_departments";
$tdataallocation_from_departments[".nSecOptions"] = 1;

$tdataallocation_from_departments[".mainTableOwnerID"] = "md";
$tdataallocation_from_departments[".entityType"] = 0;
$tdataallocation_from_departments[".connId"] = "allo_at_localhost";


$tdataallocation_from_departments[".strOriginalTableName"] = "allocation_from_departments";

	



$tdataallocation_from_departments[".showAddInPopup"] = false;

$tdataallocation_from_departments[".showEditInPopup"] = false;

$tdataallocation_from_departments[".showViewInPopup"] = false;

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


	$tdataallocation_from_departments[".listAjax"] = true;
//	temporary
$tdataallocation_from_departments[".listAjax"] = false;

	$tdataallocation_from_departments[".audit"] = false;

	$tdataallocation_from_departments[".locking"] = false;


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

if( $pages[PAGE_EDIT] ) {
	$tdataallocation_from_departments[".edit"] = true;
	$tdataallocation_from_departments[".afterEditAction"] = 1;
	$tdataallocation_from_departments[".closePopupAfterEdit"] = 1;
	$tdataallocation_from_departments[".afterEditActionDetTable"] = "";
}

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

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



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




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

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

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

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



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

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

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

$tdataallocation_from_departments[".isUseAjaxSuggest"] = true;

$tdataallocation_from_departments[".rowHighlite"] = true;



																								

$tdataallocation_from_departments[".ajaxCodeSnippetAdded"] = false;

$tdataallocation_from_departments[".buttonsAdded"] = false;

$tdataallocation_from_departments[".addPageEvents"] = false;

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


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


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

$tdataallocation_from_departments[".googleLikeFields"] = array();
$tdataallocation_from_departments[".googleLikeFields"][] = "id";
$tdataallocation_from_departments[".googleLikeFields"][] = "expenditure_code";
$tdataallocation_from_departments[".googleLikeFields"][] = "department_name";
$tdataallocation_from_departments[".googleLikeFields"][] = "amount";
$tdataallocation_from_departments[".googleLikeFields"][] = "action";
$tdataallocation_from_departments[".googleLikeFields"][] = "date";
$tdataallocation_from_departments[".googleLikeFields"][] = "user";
$tdataallocation_from_departments[".googleLikeFields"][] = "md";



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

$tdataallocation_from_departments[".printerPageOrientation"] = 0;
$tdataallocation_from_departments[".nPrinterPageScale"] = 100;

$tdataallocation_from_departments[".nPrinterSplitRecords"] = 40;

$tdataallocation_from_departments[".geocodingEnabled"] = false;










$tdataallocation_from_departments[".pageSize"] = 20;

$tdataallocation_from_departments[".warnLeavingPages"] = true;



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

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


$tdataallocation_from_departments[".sqlHead"] = "SELECT id,  	expenditure_code,  	department_name,  	amount,  	`action`,  	`date`,  	`user`,  	md";
$tdataallocation_from_departments[".sqlFrom"] = "FROM allocation_from_departments";
$tdataallocation_from_departments[".sqlWhereExpr"] = "";
$tdataallocation_from_departments[".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;
$tdataallocation_from_departments[".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;
$tdataallocation_from_departments[".arrGroupsPerPage"] = $arrGPP;

$tdataallocation_from_departments[".highlightSearchResults"] = true;

$tableKeysallocation_from_departments = array();
$tableKeysallocation_from_departments[] = "id";
$tdataallocation_from_departments[".Keys"] = $tableKeysallocation_from_departments;


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




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

	
		$fdata["AutoInc"] = true;

	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "id";

	
	
				$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


	$tdataallocation_from_departments["id"] = $fdata;
		$tdataallocation_from_departments[".searchableFields"][] = "id";
//	expenditure_code
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "expenditure_code";
	$fdata["GoodName"] = "expenditure_code";
	$fdata["ownerTable"] = "allocation_from_departments";
	$fdata["Label"] = GetFieldLabel("allocation_from_departments","expenditure_code");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "expenditure_code";

	
	
				$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"] = "expenditure_code";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["autoCompleteFields"][] = array('masterF'=>"department_name", 'lookupF'=>"department_name");
	$edata["LCType"] = 1;

	
		
	$edata["LinkField"] = "expenditure_code";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "expenditure_code";

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
	

	
	
	
// 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


	$tdataallocation_from_departments["expenditure_code"] = $fdata;
		$tdataallocation_from_departments[".searchableFields"][] = "expenditure_code";
//	department_name
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "department_name";
	$fdata["GoodName"] = "department_name";
	$fdata["ownerTable"] = "allocation_from_departments";
	$fdata["Label"] = GetFieldLabel("allocation_from_departments","department_name");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "department_name";

	
	
				$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" => "Readonly");

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


	$tdataallocation_from_departments["department_name"] = $fdata;
		$tdataallocation_from_departments[".searchableFields"][] = "department_name";
//	amount
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "amount";
	$fdata["GoodName"] = "amount";
	$fdata["ownerTable"] = "allocation_from_departments";
	$fdata["Label"] = GetFieldLabel("allocation_from_departments","amount");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "amount";

	
	
				$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["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$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


	$tdataallocation_from_departments["amount"] = $fdata;
		$tdataallocation_from_departments[".searchableFields"][] = "amount";
//	action
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "action";
	$fdata["GoodName"] = "action";
	$fdata["ownerTable"] = "allocation_from_departments";
	$fdata["Label"] = GetFieldLabel("allocation_from_departments","action");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`action`";

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

	
	
		$edata["LookupValues"] = array();
	$edata["LookupValues"][] = "නිකුත් කිරීම";
	$edata["LookupValues"][] = "පවරා ගැනීම";

	
		$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


	$tdataallocation_from_departments["action"] = $fdata;
		$tdataallocation_from_departments[".searchableFields"][] = "action";
//	date
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "date";
	$fdata["GoodName"] = "date";
	$fdata["ownerTable"] = "allocation_from_departments";
	$fdata["Label"] = GetFieldLabel("allocation_from_departments","date");
	$fdata["FieldType"] = 7;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`date`";

	
	
				$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


	$tdataallocation_from_departments["date"] = $fdata;
		$tdataallocation_from_departments[".searchableFields"][] = "date";
//	user
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "user";
	$fdata["GoodName"] = "user";
	$fdata["ownerTable"] = "allocation_from_departments";
	$fdata["Label"] = GetFieldLabel("allocation_from_departments","user");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`user`";

	
	
				$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" => "Readonly");

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


	$tdataallocation_from_departments["user"] = $fdata;
		$tdataallocation_from_departments[".searchableFields"][] = "user";
//	md
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "md";
	$fdata["GoodName"] = "md";
	$fdata["ownerTable"] = "allocation_from_departments";
	$fdata["Label"] = GetFieldLabel("allocation_from_departments","md");
	$fdata["FieldType"] = 3;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "md";

	
	
				$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" => "Readonly");

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


	$tdataallocation_from_departments["md"] = $fdata;
		$tdataallocation_from_departments[".searchableFields"][] = "md";


$tables_data["allocation_from_departments"]=&$tdataallocation_from_departments;
$field_labels["allocation_from_departments"] = &$fieldLabelsallocation_from_departments;
$fieldToolTips["allocation_from_departments"] = &$fieldToolTipsallocation_from_departments;
$placeHolders["allocation_from_departments"] = &$placeHoldersallocation_from_departments;
$page_titles["allocation_from_departments"] = &$pageTitlesallocation_from_departments;

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

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



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



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











function createSqlQuery_allocation_from_departments()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  	expenditure_code,  	department_name,  	amount,  	`action`,  	`date`,  	`user`,  	md";
$proto0["m_strFrom"] = "FROM allocation_from_departments";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto6=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "allocation_from_departments",
	"m_srcTableName" => "allocation_from_departments"
));

$proto6["m_sql"] = "id";
$proto6["m_srcTableName"] = "allocation_from_departments";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto8=array();
			$obj = new SQLField(array(
	"m_strName" => "expenditure_code",
	"m_strTable" => "allocation_from_departments",
	"m_srcTableName" => "allocation_from_departments"
));

$proto8["m_sql"] = "expenditure_code";
$proto8["m_srcTableName"] = "allocation_from_departments";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);

$proto0["m_fieldlist"][]=$obj;
						$proto10=array();
			$obj = new SQLField(array(
	"m_strName" => "department_name",
	"m_strTable" => "allocation_from_departments",
	"m_srcTableName" => "allocation_from_departments"
));

$proto10["m_sql"] = "department_name";
$proto10["m_srcTableName"] = "allocation_from_departments";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

$proto0["m_fieldlist"][]=$obj;
						$proto12=array();
			$obj = new SQLField(array(
	"m_strName" => "amount",
	"m_strTable" => "allocation_from_departments",
	"m_srcTableName" => "allocation_from_departments"
));

$proto12["m_sql"] = "amount";
$proto12["m_srcTableName"] = "allocation_from_departments";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$obj = new SQLField(array(
	"m_strName" => "action",
	"m_strTable" => "allocation_from_departments",
	"m_srcTableName" => "allocation_from_departments"
));

$proto14["m_sql"] = "`action`";
$proto14["m_srcTableName"] = "allocation_from_departments";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto16=array();
			$obj = new SQLField(array(
	"m_strName" => "date",
	"m_strTable" => "allocation_from_departments",
	"m_srcTableName" => "allocation_from_departments"
));

$proto16["m_sql"] = "`date`";
$proto16["m_srcTableName"] = "allocation_from_departments";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

$proto0["m_fieldlist"][]=$obj;
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "user",
	"m_strTable" => "allocation_from_departments",
	"m_srcTableName" => "allocation_from_departments"
));

$proto18["m_sql"] = "`user`";
$proto18["m_srcTableName"] = "allocation_from_departments";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

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

$proto20["m_sql"] = "md";
$proto20["m_srcTableName"] = "allocation_from_departments";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto22=array();
$proto22["m_link"] = "SQLL_MAIN";
			$proto23=array();
$proto23["m_strName"] = "allocation_from_departments";
$proto23["m_srcTableName"] = "allocation_from_departments";
$proto23["m_columns"] = array();
$proto23["m_columns"][] = "id";
$proto23["m_columns"][] = "expenditure_code";
$proto23["m_columns"][] = "department_name";
$proto23["m_columns"][] = "amount";
$proto23["m_columns"][] = "action";
$proto23["m_columns"][] = "date";
$proto23["m_columns"][] = "user";
$proto23["m_columns"][] = "md";
$obj = new SQLTable($proto23);

$proto22["m_table"] = $obj;
$proto22["m_sql"] = "allocation_from_departments";
$proto22["m_alias"] = "";
$proto22["m_srcTableName"] = "allocation_from_departments";
$proto24=array();
$proto24["m_sql"] = "";
$proto24["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_allocation_from_departments = createSqlQuery_allocation_from_departments();


	
		;

								

$tdataallocation_from_departments[".sqlquery"] = $queryData_allocation_from_departments;



$tableEvents["allocation_from_departments"] = new eventsBase;
$tdataallocation_from_departments[".hasEvents"] = false;

?>