<?php
$tdataMaterials_Master=array();
	$tdataMaterials_Master[".NumberOfChars"]=80; 
	$tdataMaterials_Master[".ShortName"]="Materials_Master";
	$tdataMaterials_Master[".OwnerID"]="";
	$tdataMaterials_Master[".OriginalTable"]="material_master";


	
//	field labels
$fieldLabelsMaterials_Master = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsMaterials_Master["English"]=array();
	$fieldToolTipsMaterials_Master["English"]=array();
	$fieldLabelsMaterials_Master["English"]["Material_Code"] = "Material Code";
	$fieldToolTipsMaterials_Master["English"]["Material Code"] = "";
	$fieldLabelsMaterials_Master["English"]["Material_Description"] = "Material Description";
	$fieldToolTipsMaterials_Master["English"]["Material Description"] = "";
	$fieldLabelsMaterials_Master["English"]["Material_Category"] = "Material Category";
	$fieldToolTipsMaterials_Master["English"]["Material Category"] = "";
	$fieldLabelsMaterials_Master["English"]["Specification"] = "Specification";
	$fieldToolTipsMaterials_Master["English"]["Specification"] = "";
	$fieldLabelsMaterials_Master["English"]["Status"] = "Status";
	$fieldToolTipsMaterials_Master["English"]["Status"] = "";
	$fieldLabelsMaterials_Master["English"]["List_Price"] = "List Price";
	$fieldToolTipsMaterials_Master["English"]["List_Price"] = "";
	$fieldLabelsMaterials_Master["English"]["MDP"] = "MDP";
	$fieldToolTipsMaterials_Master["English"]["MDP"] = "";
	$fieldLabelsMaterials_Master["English"]["Tax"] = "Tax";
	$fieldToolTipsMaterials_Master["English"]["Tax"] = "";
	$fieldLabelsMaterials_Master["English"]["Last_Updated_on"] = "Last Updated on";
	$fieldToolTipsMaterials_Master["English"]["Last Updated on"] = "";
	$fieldLabelsMaterials_Master["English"]["Last_Updated_by"] = "Last Updated by";
	$fieldToolTipsMaterials_Master["English"]["Last Updated by"] = "";
	if (count($fieldToolTipsMaterials_Master["English"])){
		$tdataMaterials_Master[".isUseToolTips"]=true;
	}
}


	
	$tdataMaterials_Master[".NCSearch"]=true;

	

$tdataMaterials_Master[".shortTableName"] = "Materials_Master";
$tdataMaterials_Master[".nSecOptions"] = 0;
$tdataMaterials_Master[".recsPerRowList"] = 1;	
$tdataMaterials_Master[".tableGroupBy"] = "0";
$tdataMaterials_Master[".mainTableOwnerID"] = "";
$tdataMaterials_Master[".moveNext"] = 1;




$tdataMaterials_Master[".showAddInPopup"] = false;

$tdataMaterials_Master[".showEditInPopup"] = false;

$tdataMaterials_Master[".showViewInPopup"] = false;


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

$tdataMaterials_Master[".listAjax"] = false;

	$tdataMaterials_Master[".audit"] = false;

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

$tdataMaterials_Master[".exportTo"] = true;



$tdataMaterials_Master[".showSimpleSearchOptions"] = false;

$tdataMaterials_Master[".showSearchPanel"] = true;


$tdataMaterials_Master[".isUseAjaxSuggest"] = true;

$tdataMaterials_Master[".rowHighlite"] = true;


// button handlers file names

$tdataMaterials_Master[".addPageEvents"] = false;

$tdataMaterials_Master[".arrKeyFields"][] = "Material Code";

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

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

$tdataMaterials_Master[".isUseiBox"] = false;



$tdataMaterials_Master[".isUseInlineAdd"] = true;

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

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

$tdataMaterials_Master[".globSearchFields"][] = "Material Code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Material Code", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "Material Code";	
}
$tdataMaterials_Master[".globSearchFields"][] = "Material Description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Material Description", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "Material Description";	
}
$tdataMaterials_Master[".globSearchFields"][] = "Material Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Material Category", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "Material Category";	
}
$tdataMaterials_Master[".globSearchFields"][] = "Specification";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Specification", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "Specification";	
}
$tdataMaterials_Master[".globSearchFields"][] = "Status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Status", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "Status";	
}
$tdataMaterials_Master[".globSearchFields"][] = "List_Price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("List_Price", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "List_Price";	
}
$tdataMaterials_Master[".globSearchFields"][] = "MDP";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("MDP", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "MDP";	
}
$tdataMaterials_Master[".globSearchFields"][] = "Tax";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Tax", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "Tax";	
}
$tdataMaterials_Master[".globSearchFields"][] = "Last Updated on";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Last Updated on", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "Last Updated on";	
}
$tdataMaterials_Master[".globSearchFields"][] = "Last Updated by";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Last Updated by", $tdataMaterials_Master[".allSearchFields"]))
{
	$tdataMaterials_Master[".allSearchFields"][] = "Last Updated by";	
}


$tdataMaterials_Master[".googleLikeFields"][] = "Material Code";
$tdataMaterials_Master[".googleLikeFields"][] = "Material Description";
$tdataMaterials_Master[".googleLikeFields"][] = "Material Category";
$tdataMaterials_Master[".googleLikeFields"][] = "Specification";
$tdataMaterials_Master[".googleLikeFields"][] = "Status";
$tdataMaterials_Master[".googleLikeFields"][] = "List_Price";
$tdataMaterials_Master[".googleLikeFields"][] = "MDP";
$tdataMaterials_Master[".googleLikeFields"][] = "Tax";
$tdataMaterials_Master[".googleLikeFields"][] = "Last Updated on";
$tdataMaterials_Master[".googleLikeFields"][] = "Last Updated by";



$tdataMaterials_Master[".advSearchFields"][] = "Material Code";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Material Code", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "Material Code";	
}
$tdataMaterials_Master[".advSearchFields"][] = "Material Description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Material Description", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "Material Description";	
}
$tdataMaterials_Master[".advSearchFields"][] = "Material Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Material Category", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "Material Category";	
}
$tdataMaterials_Master[".advSearchFields"][] = "Specification";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Specification", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "Specification";	
}
$tdataMaterials_Master[".advSearchFields"][] = "Status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Status", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "Status";	
}
$tdataMaterials_Master[".advSearchFields"][] = "List_Price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("List_Price", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "List_Price";	
}
$tdataMaterials_Master[".advSearchFields"][] = "MDP";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("MDP", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "MDP";	
}
$tdataMaterials_Master[".advSearchFields"][] = "Tax";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Tax", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "Tax";	
}
$tdataMaterials_Master[".advSearchFields"][] = "Last Updated on";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Last Updated on", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "Last Updated on";	
}
$tdataMaterials_Master[".advSearchFields"][] = "Last Updated by";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Last Updated by", $tdataMaterials_Master[".allSearchFields"])) 
{
	$tdataMaterials_Master[".allSearchFields"][] = "Last Updated by";	
}

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


	

$tdataMaterials_Master[".isDisplayLoading"] = true;

$tdataMaterials_Master[".isResizeColumns"] = false;





$tdataMaterials_Master[".pageSize"] = 20;

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

$tdataMaterials_Master[".sqlHead"] = "SELECT `Material Code`,   `Material Description`,   `Material Category`,   Specification,   Status,   List_Price,   MDP,   Tax,   `Last Updated on`,   `Last Updated by`";
$tdataMaterials_Master[".sqlFrom"] = "FROM material_master";
$tdataMaterials_Master[".sqlWhereExpr"] = "";
$tdataMaterials_Master[".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;
$tdataMaterials_Master[".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;
$tdataMaterials_Master[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "Material Code";
	$tdataMaterials_Master[".Keys"] = $tableKeys;

//	Material Code
	$fdata = array();
	$fdata["strName"] = "Material Code";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Material_Code";
	
		$fdata["FullName"]= "`Material Code`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=11";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["Material Code"]=$fdata;
//	Material Description
	$fdata = array();
	$fdata["strName"] = "Material Description";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Material_Description";
	
		$fdata["FullName"]= "`Material Description`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["Material Description"]=$fdata;
//	Material Category
	$fdata = array();
	$fdata["strName"] = "Material Category";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Material_Category";
	
		$fdata["FullName"]= "`Material Category`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=25";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["Material Category"]=$fdata;
//	Specification
	$fdata = array();
	$fdata["strName"] = "Specification";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Specification";
	
		$fdata["FullName"]= "Specification";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 4;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["Specification"]=$fdata;
//	Status
	$fdata = array();
	$fdata["strName"] = "Status";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=0;
	$fdata["pLookupType"] = 0;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
									$fdata["LookupValues"]=array();
	$fdata["LookupValues"][]="Active";
	$fdata["LookupValues"][]="Hold";
	$fdata["LookupValues"][]="Discontinued";
			
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Status";
	
		$fdata["FullName"]= "Status";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 5;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["Status"]=$fdata;
//	List_Price
	$fdata = array();
	$fdata["strName"] = "List_Price";
	$fdata["ownerTable"] = "material_master";
		$fdata["Label"]="List Price"; 
	
		
		
	$fdata["FieldType"]= 5;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "List_Price";
	
		$fdata["FullName"]= "List_Price";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["List_Price"]=$fdata;
//	MDP
	$fdata = array();
	$fdata["strName"] = "MDP";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 5;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "MDP";
	
		$fdata["FullName"]= "MDP";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["MDP"]=$fdata;
//	Tax
	$fdata = array();
	$fdata["strName"] = "Tax";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 5;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Tax";
	
		$fdata["FullName"]= "Tax";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["Tax"]=$fdata;
//	Last Updated on
	$fdata = array();
	$fdata["strName"] = "Last Updated on";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 135;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Datetime";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Last_Updated_on";
	
		$fdata["FullName"]= "`Last Updated on`";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 9;
		$fdata["DateEditType"] = 11; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["Last Updated on"]=$fdata;
//	Last Updated by
	$fdata = array();
	$fdata["strName"] = "Last Updated by";
	$fdata["ownerTable"] = "material_master";
		
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Last_Updated_by";
	
		$fdata["FullName"]= "`Last Updated by`";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataMaterials_Master["Last Updated by"]=$fdata;

	
$tables_data["Materials_Master"]=&$tdataMaterials_Master;
$field_labels["Materials_Master"] = &$fieldLabelsMaterials_Master;
$fieldToolTips["Materials_Master"] = &$fieldToolTipsMaterials_Master;

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

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

$mIndex = 1-1;
			$strOriginalDetailsTable="material category";
	$masterTablesData["Materials_Master"][$mIndex] = array(
		  "mDataSourceTable"=>"material category"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "material_category"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 0
		, "previewOnAdd" => 0
		, "previewOnEdit" => 0
		, "previewOnView" => 0
	);	
		$masterTablesData["Materials_Master"][$mIndex]["masterKeys"][]="Material Category";
		$masterTablesData["Materials_Master"][$mIndex]["detailKeys"][]="Material Category";

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

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










$proto256=array();
$proto256["m_strHead"] = "SELECT";
$proto256["m_strFieldList"] = "`Material Code`,   `Material Description`,   `Material Category`,   Specification,   Status,   List_Price,   MDP,   Tax,   `Last Updated on`,   `Last Updated by`";
$proto256["m_strFrom"] = "FROM material_master";
$proto256["m_strWhere"] = "";
$proto256["m_strOrderBy"] = "";
$proto256["m_strTail"] = "";
$proto257=array();
$proto257["m_sql"] = "";
$proto257["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto256["m_having"] = $obj;
$proto256["m_fieldlist"] = array();
						$proto261=array();
			$obj = new SQLField(array(
	"m_strName" => "Material Code",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto263=array();
			$obj = new SQLField(array(
	"m_strName" => "Material Description",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto265=array();
			$obj = new SQLField(array(
	"m_strName" => "Material Category",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto267=array();
			$obj = new SQLField(array(
	"m_strName" => "Specification",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto269=array();
			$obj = new SQLField(array(
	"m_strName" => "Status",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto271=array();
			$obj = new SQLField(array(
	"m_strName" => "List_Price",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto273=array();
			$obj = new SQLField(array(
	"m_strName" => "MDP",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto275=array();
			$obj = new SQLField(array(
	"m_strName" => "Tax",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto277=array();
			$obj = new SQLField(array(
	"m_strName" => "Last Updated on",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
						$proto279=array();
			$obj = new SQLField(array(
	"m_strName" => "Last Updated by",
	"m_strTable" => "material_master"
));

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

$proto256["m_fieldlist"][]=$obj;
$proto256["m_fromlist"] = array();
												$proto281=array();
$proto281["m_link"] = "SQLL_MAIN";
			$proto282=array();
$proto282["m_strName"] = "material_master";
$proto282["m_columns"] = array();
$proto282["m_columns"][] = "Material Code";
$proto282["m_columns"][] = "Material Description";
$proto282["m_columns"][] = "Material Category";
$proto282["m_columns"][] = "Specification";
$proto282["m_columns"][] = "Status";
$proto282["m_columns"][] = "List_Price";
$proto282["m_columns"][] = "MDP";
$proto282["m_columns"][] = "Tax";
$proto282["m_columns"][] = "Last Updated on";
$proto282["m_columns"][] = "Last Updated by";
$obj = new SQLTable($proto282);

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

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

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

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

$queryData_Materials_Master = $obj;
$tdataMaterials_Master[".sqlquery"] = $queryData_Materials_Master;

$tableEvents["Materials_Master"] = new eventsBase;

?>
