<?php
$tdataadvanced_allocation_letter = array();
$tdataadvanced_allocation_letter[".searchableFields"] = array();
$tdataadvanced_allocation_letter[".ShortName"] = "advanced_allocation_letter";
$tdataadvanced_allocation_letter[".OwnerID"] = "ud";
$tdataadvanced_allocation_letter[".OriginalTable"] = "allocation_detail";


$tdataadvanced_allocation_letter[".pagesByType"] = my_json_decode( "{\"report\":[\"report\"],\"rprint\":[\"rprint\"],\"search\":[\"search\"]}" );
$tdataadvanced_allocation_letter[".originalPagesByType"] = $tdataadvanced_allocation_letter[".pagesByType"];
$tdataadvanced_allocation_letter[".pages"] = types2pages( my_json_decode( "{\"report\":[\"report\"],\"rprint\":[\"rprint\"],\"search\":[\"search\"]}" ) );
$tdataadvanced_allocation_letter[".originalPages"] = $tdataadvanced_allocation_letter[".pages"];
$tdataadvanced_allocation_letter[".defaultPages"] = my_json_decode( "{\"report\":\"report\",\"rprint\":\"rprint\",\"search\":\"search\"}" );
$tdataadvanced_allocation_letter[".originalDefaultPages"] = $tdataadvanced_allocation_letter[".defaultPages"];

//	field labels
$fieldLabelsadvanced_allocation_letter = array();
$fieldToolTipsadvanced_allocation_letter = array();
$pageTitlesadvanced_allocation_letter = array();
$placeHoldersadvanced_allocation_letter = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsadvanced_allocation_letter["English"] = array();
	$fieldToolTipsadvanced_allocation_letter["English"] = array();
	$placeHoldersadvanced_allocation_letter["English"] = array();
	$pageTitlesadvanced_allocation_letter["English"] = array();
	$fieldLabelsadvanced_allocation_letter["English"]["id"] = "Id";
	$fieldToolTipsadvanced_allocation_letter["English"]["id"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["id"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["sub_office_code"] = "Sub Office Code";
	$fieldToolTipsadvanced_allocation_letter["English"]["sub_office_code"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["sub_office_code"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["sub_office"] = "Sub Office";
	$fieldToolTipsadvanced_allocation_letter["English"]["sub_office"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["sub_office"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["expenditure_code"] = "Expenditure Code";
	$fieldToolTipsadvanced_allocation_letter["English"]["expenditure_code"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["expenditure_code"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["department"] = "Department";
	$fieldToolTipsadvanced_allocation_letter["English"]["department"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["department"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["amount"] = "Amount";
	$fieldToolTipsadvanced_allocation_letter["English"]["amount"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["amount"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["date"] = "Date";
	$fieldToolTipsadvanced_allocation_letter["English"]["date"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["date"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["user"] = "User";
	$fieldToolTipsadvanced_allocation_letter["English"]["user"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["user"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["on_time"] = "On Time";
	$fieldToolTipsadvanced_allocation_letter["English"]["on_time"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["on_time"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["fk"] = "Fk";
	$fieldToolTipsadvanced_allocation_letter["English"]["fk"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["fk"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["action"] = "Action";
	$fieldToolTipsadvanced_allocation_letter["English"]["action"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["action"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["ud"] = "Ud";
	$fieldToolTipsadvanced_allocation_letter["English"]["ud"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["ud"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["md"] = "Md";
	$fieldToolTipsadvanced_allocation_letter["English"]["md"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["md"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["comment"] = "Comment";
	$fieldToolTipsadvanced_allocation_letter["English"]["comment"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["comment"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["description"] = "Description";
	$fieldToolTipsadvanced_allocation_letter["English"]["description"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["description"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["c_acc"] = "C Acc";
	$fieldToolTipsadvanced_allocation_letter["English"]["c_acc"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["c_acc"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["delete"] = "Delete";
	$fieldToolTipsadvanced_allocation_letter["English"]["delete"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["delete"] = "";
	$fieldLabelsadvanced_allocation_letter["English"]["accounting_code"] = "Accounting Code";
	$fieldToolTipsadvanced_allocation_letter["English"]["accounting_code"] = "";
	$placeHoldersadvanced_allocation_letter["English"]["accounting_code"] = "";
	if (count($fieldToolTipsadvanced_allocation_letter["English"]))
		$tdataadvanced_allocation_letter[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="sinhala")
{
	$fieldLabelsadvanced_allocation_letter["sinhala"] = array();
	$fieldToolTipsadvanced_allocation_letter["sinhala"] = array();
	$placeHoldersadvanced_allocation_letter["sinhala"] = array();
	$pageTitlesadvanced_allocation_letter["sinhala"] = array();
	$fieldLabelsadvanced_allocation_letter["sinhala"]["id"] = "Id";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["id"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["id"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["sub_office_code"] = "Sub Office Code";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["sub_office_code"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["sub_office_code"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["sub_office"] = "Sub Office";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["sub_office"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["sub_office"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["expenditure_code"] = "Expenditure Code";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["expenditure_code"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["expenditure_code"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["department"] = "Department";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["department"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["department"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["amount"] = "Amount";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["amount"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["amount"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["date"] = "Date";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["date"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["date"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["user"] = "User";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["user"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["user"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["on_time"] = "On Time";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["on_time"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["on_time"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["fk"] = "Fk";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["fk"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["fk"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["action"] = "Action";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["action"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["action"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["ud"] = "Ud";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["ud"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["ud"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["md"] = "Md";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["md"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["md"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["comment"] = "Comment";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["comment"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["comment"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["description"] = "Description";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["description"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["description"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["c_acc"] = "C Acc";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["c_acc"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["c_acc"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["delete"] = "Delete";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["delete"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["delete"] = "";
	$fieldLabelsadvanced_allocation_letter["sinhala"]["accounting_code"] = "Accounting Code";
	$fieldToolTipsadvanced_allocation_letter["sinhala"]["accounting_code"] = "";
	$placeHoldersadvanced_allocation_letter["sinhala"]["accounting_code"] = "";
	if (count($fieldToolTipsadvanced_allocation_letter["sinhala"]))
		$tdataadvanced_allocation_letter[".isUseToolTips"] = true;
}


	$tdataadvanced_allocation_letter[".NCSearch"] = true;



$tdataadvanced_allocation_letter[".shortTableName"] = "advanced_allocation_letter";
$tdataadvanced_allocation_letter[".nSecOptions"] = 1;

$tdataadvanced_allocation_letter[".mainTableOwnerID"] = "ud";
$tdataadvanced_allocation_letter[".entityType"] = 2;
$tdataadvanced_allocation_letter[".connId"] = "allo_at_localhost";


$tdataadvanced_allocation_letter[".strOriginalTableName"] = "allocation_detail";

	



$tdataadvanced_allocation_letter[".showAddInPopup"] = false;

$tdataadvanced_allocation_letter[".showEditInPopup"] = false;

$tdataadvanced_allocation_letter[".showViewInPopup"] = false;

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


$tdataadvanced_allocation_letter[".listAjax"] = false;
//	temporary
$tdataadvanced_allocation_letter[".listAjax"] = false;

	$tdataadvanced_allocation_letter[".audit"] = false;

	$tdataadvanced_allocation_letter[".locking"] = false;


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

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

if( $pages[PAGE_ADD] ) {
$tdataadvanced_allocation_letter[".add"] = true;
$tdataadvanced_allocation_letter[".afterAddAction"] = 1;
$tdataadvanced_allocation_letter[".closePopupAfterAdd"] = 1;
$tdataadvanced_allocation_letter[".afterAddActionDetTable"] = "";
}

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



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




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

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

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

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



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

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

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

$tdataadvanced_allocation_letter[".isUseAjaxSuggest"] = true;




																								

$tdataadvanced_allocation_letter[".ajaxCodeSnippetAdded"] = false;

$tdataadvanced_allocation_letter[".buttonsAdded"] = false;

$tdataadvanced_allocation_letter[".addPageEvents"] = false;

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


$tdataadvanced_allocation_letter[".badgeColor"] = "4169E1";


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

$tdataadvanced_allocation_letter[".googleLikeFields"] = array();
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "id";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "sub_office_code";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "sub_office";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "expenditure_code";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "department";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "amount";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "date";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "user";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "on_time";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "fk";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "action";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "ud";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "md";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "comment";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "description";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "c_acc";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "delete";
$tdataadvanced_allocation_letter[".googleLikeFields"][] = "accounting_code";



$tdataadvanced_allocation_letter[".tableType"] = "report";

$tdataadvanced_allocation_letter[".printerPageOrientation"] = 0;
$tdataadvanced_allocation_letter[".isPrinterPageFitToPage"] = 0;
$tdataadvanced_allocation_letter[".nPrinterPageScale"] = 100;

$tdataadvanced_allocation_letter[".nPrinterSplitRecords"] = 40;

$tdataadvanced_allocation_letter[".geocodingEnabled"] = false;

//report settings
$tdataadvanced_allocation_letter[".printReportLayout"] = 3;

$tdataadvanced_allocation_letter[".reportPrintPartitionType"] = 1;
$tdataadvanced_allocation_letter[".reportPrintGroupsPerPage"] = 1;
$tdataadvanced_allocation_letter[".lowGroup"] = 2;



$tdataadvanced_allocation_letter[".reportGroupFields"] = true;
$tdataadvanced_allocation_letter[".pageSize"] = 5;
$tdataadvanced_allocation_letter[".showGroupSummaryCount"] = true;
$reportGroupFieldsList = array();
$reportGroupFields = array();
	$reportGroupFieldsList []= "department";

	$rgroupField = array();
	$rgroupField['strGroupField'] = "department";
	$rgroupField['groupInterval'] = 0;
	$rgroupField['groupOrder'] = 1;
	$rgroupField['showGroupSummary'] = "1";
	$rgroupField['crossTabAxis'] = "0";
	$reportGroupFields[] = $rgroupField;
	$reportGroupFieldsList []= "action";

	$rgroupField = array();
	$rgroupField['strGroupField'] = "action";
	$rgroupField['groupInterval'] = 0;
	$rgroupField['groupOrder'] = 2;
	$rgroupField['showGroupSummary'] = "1";
	$rgroupField['crossTabAxis'] = "0";
	$reportGroupFields[] = $rgroupField;
$tdataadvanced_allocation_letter[".reportGroupFieldsData"] = $reportGroupFields;
$tdataadvanced_allocation_letter[".reportGroupFieldsList"] = $reportGroupFieldsList;






$tdataadvanced_allocation_letter[".repShowDet"] = true;

$tdataadvanced_allocation_letter[".reportLayout"] = 3;

//end of report settings










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

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


$tdataadvanced_allocation_letter[".sqlHead"] = "SELECT id,  	sub_office_code,  	sub_office,  	expenditure_code,  	department,  	amount,  	`date`,  	`user`,  	on_time,  	fk,  	`action`,  	ud,  	md,  	`comment`,  	description,  	c_acc,  	`delete`,  	accounting_code";
$tdataadvanced_allocation_letter[".sqlFrom"] = "FROM allocation_detail";
$tdataadvanced_allocation_letter[".sqlWhereExpr"] = "";
$tdataadvanced_allocation_letter[".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;
$tdataadvanced_allocation_letter[".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;
$tdataadvanced_allocation_letter[".arrGroupsPerPage"] = $arrGPP;

$tdataadvanced_allocation_letter[".highlightSearchResults"] = true;

$tableKeysadvanced_allocation_letter = array();
$tableKeysadvanced_allocation_letter[] = "id";
$tdataadvanced_allocation_letter[".Keys"] = $tableKeysadvanced_allocation_letter;


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




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

		// report field settings
					// end of report field settings

		$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"]["report"] = $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"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["id"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "id";
//	sub_office_code
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "sub_office_code";
	$fdata["GoodName"] = "sub_office_code";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","sub_office_code");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $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"] = "sub_office";
			$edata["autoCompleteFieldsOnEdit"] = 1;
	$edata["autoCompleteFields"] = array();
		$edata["autoCompleteFields"][] = array('masterF'=>"sub_office", 'lookupF'=>"sub_office");
	$edata["autoCompleteFields"][] = array('masterF'=>"ud", 'lookupF'=>"ud");
	$edata["LCType"] = 1;

	
		
	$edata["LinkField"] = "code";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "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"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["sub_office_code"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "sub_office_code";
//	sub_office
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "sub_office";
	$fdata["GoodName"] = "sub_office";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","sub_office");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $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"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["sub_office"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "sub_office";
//	expenditure_code
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "expenditure_code";
	$fdata["GoodName"] = "expenditure_code";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","expenditure_code");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$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"]["report"] = $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["EditParams"].= " maxlength=250";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["expenditure_code"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "expenditure_code";
//	department
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "department";
	$fdata["GoodName"] = "department";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","department");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=250";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["department"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "department";
//	amount
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "amount";
	$fdata["GoodName"] = "amount";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","amount");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$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"]["report"] = $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"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["amount"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "amount";
//	date
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "date";
	$fdata["GoodName"] = "date";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","date");
	$fdata["FieldType"] = 7;

		// report field settings
					// end of report field settings

	
	
			

		$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"]["report"] = $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"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["date"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "date";
//	user
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "user";
	$fdata["GoodName"] = "user";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","user");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$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"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=250";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["user"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "user";
//	on_time
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "on_time";
	$fdata["GoodName"] = "on_time";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","on_time");
	$fdata["FieldType"] = 135;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$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"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Date");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 13;
	$edata["InitialYearFactor"] = 100;
	$edata["LastYearFactor"] = 10;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["on_time"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "on_time";
//	fk
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "fk";
	$fdata["GoodName"] = "fk";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","fk");
	$fdata["FieldType"] = 3;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$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");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["fk"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "fk";
//	action
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "action";
	$fdata["GoodName"] = "action";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","action");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$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"]["report"] = $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"] = 4;

		$edata["HorizontalLookup"] = true;

	
		$edata["LookupValues"] = array();
	$edata["LookupValues"][] = "නිකුත් කිරීම";
	$edata["LookupValues"][] = "අවශෝෂණය";

	
	
// 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"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the user's search options list
		$fdata["searchOptionsList"] = array();
		$fdata["searchOptionsList"][] = "Contains";
		$fdata["searchOptionsList"][] = "Equals";
		$fdata["searchOptionsList"][] = "Starts with";
		$fdata["searchOptionsList"][] = "More than";
		$fdata["searchOptionsList"][] = "Less than";
		$fdata["searchOptionsList"][] = "Between";
		$fdata["searchOptionsList"][] = "Empty";
		$fdata["searchOptionsList"][] = "NOT Contains";
		$fdata["searchOptionsList"][] = "NOT Equals";
		$fdata["searchOptionsList"][] = "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


	$tdataadvanced_allocation_letter["action"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "action";
//	ud
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "ud";
	$fdata["GoodName"] = "ud";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","ud");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $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"]["search"] = $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


	$tdataadvanced_allocation_letter["ud"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "ud";
//	md
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "md";
	$fdata["GoodName"] = "md";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","md");
	$fdata["FieldType"] = 3;

		// report field settings
					// end of report field settings

	
	
			

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


	$tdataadvanced_allocation_letter["md"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "md";
//	comment
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "comment";
	$fdata["GoodName"] = "comment";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","comment");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=250";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $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


	$tdataadvanced_allocation_letter["comment"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "comment";
//	description
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "description";
	$fdata["GoodName"] = "description";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","description");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=250";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $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


	$tdataadvanced_allocation_letter["description"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "description";
//	c_acc
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "c_acc";
	$fdata["GoodName"] = "c_acc";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","c_acc");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$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");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $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


	$tdataadvanced_allocation_letter["c_acc"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "c_acc";
//	delete
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 17;
	$fdata["strName"] = "delete";
	$fdata["GoodName"] = "delete";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","delete");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$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");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $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


	$tdataadvanced_allocation_letter["delete"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "delete";
//	accounting_code
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 18;
	$fdata["strName"] = "accounting_code";
	$fdata["GoodName"] = "accounting_code";
	$fdata["ownerTable"] = "allocation_detail";
	$fdata["Label"] = GetFieldLabel("Advanced_allocation_letter","accounting_code");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

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

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

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



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

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=250";

		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $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


	$tdataadvanced_allocation_letter["accounting_code"] = $fdata;
		$tdataadvanced_allocation_letter[".searchableFields"][] = "accounting_code";


$tables_data["Advanced_allocation_letter"]=&$tdataadvanced_allocation_letter;
$field_labels["Advanced_allocation_letter"] = &$fieldLabelsadvanced_allocation_letter;
$fieldToolTips["Advanced_allocation_letter"] = &$fieldToolTipsadvanced_allocation_letter;
$placeHolders["Advanced_allocation_letter"] = &$placeHoldersadvanced_allocation_letter;
$page_titles["Advanced_allocation_letter"] = &$pageTitlesadvanced_allocation_letter;

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

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



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



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











function createSqlQuery_advanced_allocation_letter()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  	sub_office_code,  	sub_office,  	expenditure_code,  	department,  	amount,  	`date`,  	`user`,  	on_time,  	fk,  	`action`,  	ud,  	md,  	`comment`,  	description,  	c_acc,  	`delete`,  	accounting_code";
$proto0["m_strFrom"] = "FROM allocation_detail";
$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_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

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

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

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

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

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

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

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

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

$proto14["m_sql"] = "department";
$proto14["m_srcTableName"] = "Advanced_allocation_letter";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

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

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

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

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

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "on_time",
	"m_strTable" => "allocation_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

$proto22["m_sql"] = "on_time";
$proto22["m_srcTableName"] = "Advanced_allocation_letter";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto0["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLField(array(
	"m_strName" => "fk",
	"m_strTable" => "allocation_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

$proto24["m_sql"] = "fk";
$proto24["m_srcTableName"] = "Advanced_allocation_letter";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "ud",
	"m_strTable" => "allocation_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

$proto28["m_sql"] = "ud";
$proto28["m_srcTableName"] = "Advanced_allocation_letter";
$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "";
$obj = new SQLFieldListItem($proto28);

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto32=array();
			$obj = new SQLField(array(
	"m_strName" => "comment",
	"m_strTable" => "allocation_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

$proto32["m_sql"] = "`comment`";
$proto32["m_srcTableName"] = "Advanced_allocation_letter";
$proto32["m_expr"]=$obj;
$proto32["m_alias"] = "";
$obj = new SQLFieldListItem($proto32);

$proto0["m_fieldlist"][]=$obj;
						$proto34=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "allocation_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

$proto34["m_sql"] = "description";
$proto34["m_srcTableName"] = "Advanced_allocation_letter";
$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "";
$obj = new SQLFieldListItem($proto34);

$proto0["m_fieldlist"][]=$obj;
						$proto36=array();
			$obj = new SQLField(array(
	"m_strName" => "c_acc",
	"m_strTable" => "allocation_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

$proto36["m_sql"] = "c_acc";
$proto36["m_srcTableName"] = "Advanced_allocation_letter";
$proto36["m_expr"]=$obj;
$proto36["m_alias"] = "";
$obj = new SQLFieldListItem($proto36);

$proto0["m_fieldlist"][]=$obj;
						$proto38=array();
			$obj = new SQLField(array(
	"m_strName" => "delete",
	"m_strTable" => "allocation_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

$proto38["m_sql"] = "`delete`";
$proto38["m_srcTableName"] = "Advanced_allocation_letter";
$proto38["m_expr"]=$obj;
$proto38["m_alias"] = "";
$obj = new SQLFieldListItem($proto38);

$proto0["m_fieldlist"][]=$obj;
						$proto40=array();
			$obj = new SQLField(array(
	"m_strName" => "accounting_code",
	"m_strTable" => "allocation_detail",
	"m_srcTableName" => "Advanced_allocation_letter"
));

$proto40["m_sql"] = "accounting_code";
$proto40["m_srcTableName"] = "Advanced_allocation_letter";
$proto40["m_expr"]=$obj;
$proto40["m_alias"] = "";
$obj = new SQLFieldListItem($proto40);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto42=array();
$proto42["m_link"] = "SQLL_MAIN";
			$proto43=array();
$proto43["m_strName"] = "allocation_detail";
$proto43["m_srcTableName"] = "Advanced_allocation_letter";
$proto43["m_columns"] = array();
$proto43["m_columns"][] = "id";
$proto43["m_columns"][] = "sub_office_code";
$proto43["m_columns"][] = "sub_office";
$proto43["m_columns"][] = "expenditure_code";
$proto43["m_columns"][] = "department";
$proto43["m_columns"][] = "amount";
$proto43["m_columns"][] = "date";
$proto43["m_columns"][] = "user";
$proto43["m_columns"][] = "on_time";
$proto43["m_columns"][] = "fk";
$proto43["m_columns"][] = "action";
$proto43["m_columns"][] = "ud";
$proto43["m_columns"][] = "md";
$proto43["m_columns"][] = "comment";
$proto43["m_columns"][] = "description";
$proto43["m_columns"][] = "c_acc";
$proto43["m_columns"][] = "delete";
$proto43["m_columns"][] = "accounting_code";
$obj = new SQLTable($proto43);

$proto42["m_table"] = $obj;
$proto42["m_sql"] = "allocation_detail";
$proto42["m_alias"] = "";
$proto42["m_srcTableName"] = "Advanced_allocation_letter";
$proto44=array();
$proto44["m_sql"] = "";
$proto44["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_advanced_allocation_letter = createSqlQuery_advanced_allocation_letter();


	
		;

																		

$tdataadvanced_allocation_letter[".sqlquery"] = $queryData_advanced_allocation_letter;



$tableEvents["Advanced_allocation_letter"] = new eventsBase;
$tdataadvanced_allocation_letter[".hasEvents"] = false;

?>