/reports/leaves_reports/output/include/leave_summaryreport_settings.php
PHP | 1743 lines | 1051 code | 618 blank | 74 comment | 33 complexity | 7979d87d7e2228d34a6ea0026063bebf MD5 | raw file
Possible License(s): LGPL-2.1
- <?php
- $tdataleave_summaryreport=array();
- $tdataleave_summaryreport[".ShortName"]="leave_summaryreport";
- $tdataleave_summaryreport[".OwnerID"]="";
- $tdataleave_summaryreport[".OriginalTable"]="vwpromotions";
-
-
-
- // field labels
- $fieldLabelsleave_summaryreport = array();
- if(mlang_getcurrentlang()=="English")
- {
- $fieldLabelsleave_summaryreport["English"]=array();
- $fieldToolTipsleave_summaryreport["English"]=array();
- $fieldLabelsleave_summaryreport["English"]["surname"] = "Surname";
- $fieldToolTipsleave_summaryreport["English"]["surname"] = "";
- $fieldLabelsleave_summaryreport["English"]["firstname"] = "Firstname";
- $fieldToolTipsleave_summaryreport["English"]["firstname"] = "";
- $fieldLabelsleave_summaryreport["English"]["othernames"] = "Othernames";
- $fieldToolTipsleave_summaryreport["English"]["othernames"] = "";
- $fieldLabelsleave_summaryreport["English"]["personnelno"] = "Personnel No.";
- $fieldToolTipsleave_summaryreport["English"]["personnelno"] = "";
- $fieldLabelsleave_summaryreport["English"]["dept"] = "Department";
- $fieldToolTipsleave_summaryreport["English"]["dept"] = "";
- $fieldLabelsleave_summaryreport["English"]["description"] = "Leave Type";
- $fieldToolTipsleave_summaryreport["English"]["description"] = "";
- $fieldLabelsleave_summaryreport["English"]["status"] = "Status";
- $fieldToolTipsleave_summaryreport["English"]["status"] = "";
- $fieldLabelsleave_summaryreport["English"]["leavecount"] = "Number of leaves";
- $fieldToolTipsleave_summaryreport["English"]["leavecount"] = "";
- $fieldLabelsleave_summaryreport["English"]["faculty"] = "Faculty";
- $fieldToolTipsleave_summaryreport["English"]["faculty"] = "";
- $fieldLabelsleave_summaryreport["English"]["rank"] = "Rank";
- $fieldToolTipsleave_summaryreport["English"]["rank"] = "";
- $fieldLabelsleave_summaryreport["English"]["cadre"] = "Cadre";
- $fieldToolTipsleave_summaryreport["English"]["cadre"] = "";
- $fieldLabelsleave_summaryreport["English"]["staffcategory"] = "Staff Category";
- $fieldToolTipsleave_summaryreport["English"]["staffcategory"] = "";
- if (count($fieldToolTipsleave_summaryreport["English"])){
- $tdataleave_summaryreport[".isUseToolTips"]=true;
- }
- }
-
-
-
- $tdataleave_summaryreport[".NCSearch"]=true;
-
-
-
- $tdataleave_summaryreport[".shortTableName"] = "leave_summaryreport";
- $tdataleave_summaryreport[".nSecOptions"] = 0;
- $tdataleave_summaryreport[".recsPerRowList"] = 1;
- $tdataleave_summaryreport[".tableGroupBy"] = "1";
- $tdataleave_summaryreport[".mainTableOwnerID"] = "";
- $tdataleave_summaryreport[".moveNext"] = 1;
-
-
-
-
- $tdataleave_summaryreport[".showAddInPopup"] = false;
-
- $tdataleave_summaryreport[".showEditInPopup"] = false;
-
- $tdataleave_summaryreport[".showViewInPopup"] = false;
-
-
- $tdataleave_summaryreport[".fieldsForRegister"] = array();
-
- $tdataleave_summaryreport[".listAjax"] = false;
-
- $tdataleave_summaryreport[".audit"] = false;
-
- $tdataleave_summaryreport[".locking"] = false;
-
- $tdataleave_summaryreport[".listIcons"] = true;
-
- $tdataleave_summaryreport[".exportTo"] = true;
-
- $tdataleave_summaryreport[".printFriendly"] = true;
-
-
- $tdataleave_summaryreport[".showSimpleSearchOptions"] = false;
-
- $tdataleave_summaryreport[".showSearchPanel"] = true;
-
-
- if (isMobile()){
- $tdataleave_summaryreport[".isUseAjaxSuggest"] = false;
- }else {
- $tdataleave_summaryreport[".isUseAjaxSuggest"] = true;
- }
-
-
-
- // button handlers file names
-
- $tdataleave_summaryreport[".addPageEvents"] = false;
-
-
- // use datepicker for search panel
- $tdataleave_summaryreport[".isUseCalendarForSearch"] = false;
-
- // use timepicker for search panel
- $tdataleave_summaryreport[".isUseTimeForSearch"] = false;
-
- $tdataleave_summaryreport[".isUseiBox"] = false;
-
-
-
-
-
-
- $tdataleave_summaryreport[".isUseInlineJs"] = $tdataleave_summaryreport[".isUseInlineAdd"] || $tdataleave_summaryreport[".isUseInlineEdit"];
-
- $tdataleave_summaryreport[".allSearchFields"] = array();
-
- $tdataleave_summaryreport[".globSearchFields"][] = "description";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("description", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "description";
- }
- $tdataleave_summaryreport[".globSearchFields"][] = "personnelno";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("personnelno", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "personnelno";
- }
- $tdataleave_summaryreport[".globSearchFields"][] = "dept";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("dept", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "dept";
- }
- $tdataleave_summaryreport[".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", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "status";
- }
- $tdataleave_summaryreport[".globSearchFields"][] = "leavecount";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("leavecount", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "leavecount";
- }
- $tdataleave_summaryreport[".globSearchFields"][] = "faculty";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("faculty", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "faculty";
- }
- $tdataleave_summaryreport[".globSearchFields"][] = "rank";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("rank", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "rank";
- }
- $tdataleave_summaryreport[".globSearchFields"][] = "cadre";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("cadre", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "cadre";
- }
- $tdataleave_summaryreport[".globSearchFields"][] = "staffcategory";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("staffcategory", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "staffcategory";
- }
-
-
- $tdataleave_summaryreport[".googleLikeFields"][] = "description";
- $tdataleave_summaryreport[".googleLikeFields"][] = "personnelno";
- $tdataleave_summaryreport[".googleLikeFields"][] = "dept";
- $tdataleave_summaryreport[".googleLikeFields"][] = "status";
- $tdataleave_summaryreport[".googleLikeFields"][] = "leavecount";
- $tdataleave_summaryreport[".googleLikeFields"][] = "faculty";
- $tdataleave_summaryreport[".googleLikeFields"][] = "rank";
- $tdataleave_summaryreport[".googleLikeFields"][] = "cadre";
- $tdataleave_summaryreport[".googleLikeFields"][] = "staffcategory";
-
- $tdataleave_summaryreport[".panelSearchFields"][] = "description";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("description", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "description";
- }
- $tdataleave_summaryreport[".panelSearchFields"][] = "personnelno";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("personnelno", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "personnelno";
- }
- $tdataleave_summaryreport[".panelSearchFields"][] = "dept";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("dept", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "dept";
- }
- $tdataleave_summaryreport[".panelSearchFields"][] = "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", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "status";
- }
- $tdataleave_summaryreport[".panelSearchFields"][] = "leavecount";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("leavecount", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "leavecount";
- }
- $tdataleave_summaryreport[".panelSearchFields"][] = "faculty";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("faculty", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "faculty";
- }
- $tdataleave_summaryreport[".panelSearchFields"][] = "rank";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("rank", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "rank";
- }
- $tdataleave_summaryreport[".panelSearchFields"][] = "cadre";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("cadre", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "cadre";
- }
- $tdataleave_summaryreport[".panelSearchFields"][] = "staffcategory";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("staffcategory", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "staffcategory";
- }
-
-
- $tdataleave_summaryreport[".advSearchFields"][] = "description";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("description", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "description";
- }
- $tdataleave_summaryreport[".advSearchFields"][] = "personnelno";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("personnelno", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "personnelno";
- }
- $tdataleave_summaryreport[".advSearchFields"][] = "dept";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("dept", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "dept";
- }
- $tdataleave_summaryreport[".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", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "status";
- }
- $tdataleave_summaryreport[".advSearchFields"][] = "leavecount";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("leavecount", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "leavecount";
- }
- $tdataleave_summaryreport[".advSearchFields"][] = "faculty";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("faculty", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "faculty";
- }
- $tdataleave_summaryreport[".advSearchFields"][] = "rank";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("rank", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "rank";
- }
- $tdataleave_summaryreport[".advSearchFields"][] = "cadre";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("cadre", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "cadre";
- }
- $tdataleave_summaryreport[".advSearchFields"][] = "staffcategory";
- // do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
- if (!in_array("staffcategory", $tdataleave_summaryreport[".allSearchFields"]))
- {
- $tdataleave_summaryreport[".allSearchFields"][] = "staffcategory";
- }
-
- $tdataleave_summaryreport[".isTableType"] = "report";
-
-
-
-
-
-
- // Access doesn't support subqueries from the same table as main
- $tdataleave_summaryreport[".subQueriesSupAccess"] = true;
-
-
-
-
-
-
- $gstrOrderBy = "";
- if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
- $gstrOrderBy = "order by ".$gstrOrderBy;
- $tdataleave_summaryreport[".strOrderBy"] = $gstrOrderBy;
-
- $tdataleave_summaryreport[".orderindexes"] = array();
-
- $tdataleave_summaryreport[".sqlHead"] = "Select vwpromotions.surname, vwpromotions.firstname, vwpromotions.othernames, tblleavetype.description, vwpromotions.personnelno, vwpromotions.dept, tblleaveapplication.status, vwpromotions.employeeid AS leavecount, vwpromotions.faculty, tblrank.name AS rank, tblcadre.` name` AS cadre, tblstaffcategory.name AS staffcategory";
- $tdataleave_summaryreport[".sqlFrom"] = "FROM vwpromotions INNER JOIN tblleaveapplication ON vwpromotions.employeeid = tblleaveapplication.employeeid INNER JOIN tblleaveplan ON tblleaveapplication.planid = tblleaveplan.planid INNER JOIN tblleavetype ON tblleaveplan.leavetypeid = tblleavetype.leavetypeid INNER JOIN tblrank ON vwpromotions.rank = tblrank.rankid INNER JOIN tblcadre ON tblrank.cadreid = tblcadre.cadreid INNER JOIN tblstaffcategory ON tblcadre.categoryid = tblstaffcategory.categoryid";
- $tdataleave_summaryreport[".sqlWhereExpr"] = "";
- $tdataleave_summaryreport[".sqlTail"] = "GROUP BY vwpromotions.personnelno, vwpromotions.employeeid";
-
-
-
-
- //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;
- $tdataleave_summaryreport[".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;
- $tdataleave_summaryreport[".arrGroupsPerPage"] = $arrGPP;
-
- $tableKeys = array();
- $tdataleave_summaryreport[".Keys"] = $tableKeys;
-
- $tdataleave_summaryreport[".listFields"] = array();
- $tdataleave_summaryreport[".listFields"][] = "surname";
- $tdataleave_summaryreport[".listFields"][] = "firstname";
- $tdataleave_summaryreport[".listFields"][] = "othernames";
- $tdataleave_summaryreport[".listFields"][] = "description";
- $tdataleave_summaryreport[".listFields"][] = "personnelno";
- $tdataleave_summaryreport[".listFields"][] = "dept";
- $tdataleave_summaryreport[".listFields"][] = "status";
- $tdataleave_summaryreport[".listFields"][] = "leavecount";
- $tdataleave_summaryreport[".listFields"][] = "faculty";
- $tdataleave_summaryreport[".listFields"][] = "rank";
- $tdataleave_summaryreport[".listFields"][] = "cadre";
- $tdataleave_summaryreport[".listFields"][] = "staffcategory";
-
- $tdataleave_summaryreport[".addFields"] = array();
- $tdataleave_summaryreport[".addFields"][] = "surname";
- $tdataleave_summaryreport[".addFields"][] = "firstname";
- $tdataleave_summaryreport[".addFields"][] = "othernames";
- $tdataleave_summaryreport[".addFields"][] = "personnelno";
- $tdataleave_summaryreport[".addFields"][] = "dept";
- $tdataleave_summaryreport[".addFields"][] = "faculty";
- $tdataleave_summaryreport[".addFields"][] = "rank";
-
- $tdataleave_summaryreport[".inlineAddFields"] = array();
- $tdataleave_summaryreport[".inlineAddFields"][] = "surname";
- $tdataleave_summaryreport[".inlineAddFields"][] = "firstname";
- $tdataleave_summaryreport[".inlineAddFields"][] = "othernames";
- $tdataleave_summaryreport[".inlineAddFields"][] = "description";
- $tdataleave_summaryreport[".inlineAddFields"][] = "personnelno";
- $tdataleave_summaryreport[".inlineAddFields"][] = "dept";
- $tdataleave_summaryreport[".inlineAddFields"][] = "status";
- $tdataleave_summaryreport[".inlineAddFields"][] = "leavecount";
- $tdataleave_summaryreport[".inlineAddFields"][] = "faculty";
- $tdataleave_summaryreport[".inlineAddFields"][] = "rank";
- $tdataleave_summaryreport[".inlineAddFields"][] = "cadre";
- $tdataleave_summaryreport[".inlineAddFields"][] = "staffcategory";
-
- $tdataleave_summaryreport[".editFields"] = array();
- $tdataleave_summaryreport[".editFields"][] = "surname";
- $tdataleave_summaryreport[".editFields"][] = "firstname";
- $tdataleave_summaryreport[".editFields"][] = "othernames";
- $tdataleave_summaryreport[".editFields"][] = "personnelno";
- $tdataleave_summaryreport[".editFields"][] = "dept";
- $tdataleave_summaryreport[".editFields"][] = "faculty";
- $tdataleave_summaryreport[".editFields"][] = "rank";
-
- $tdataleave_summaryreport[".inlineEditFields"] = array();
- $tdataleave_summaryreport[".inlineEditFields"][] = "surname";
- $tdataleave_summaryreport[".inlineEditFields"][] = "firstname";
- $tdataleave_summaryreport[".inlineEditFields"][] = "othernames";
- $tdataleave_summaryreport[".inlineEditFields"][] = "description";
- $tdataleave_summaryreport[".inlineEditFields"][] = "personnelno";
- $tdataleave_summaryreport[".inlineEditFields"][] = "dept";
- $tdataleave_summaryreport[".inlineEditFields"][] = "status";
- $tdataleave_summaryreport[".inlineEditFields"][] = "leavecount";
- $tdataleave_summaryreport[".inlineEditFields"][] = "faculty";
- $tdataleave_summaryreport[".inlineEditFields"][] = "rank";
- $tdataleave_summaryreport[".inlineEditFields"][] = "cadre";
- $tdataleave_summaryreport[".inlineEditFields"][] = "staffcategory";
-
-
- // surname
- $fdata = array();
- $fdata["strName"] = "surname";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Surname";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "surname";
-
- $fdata["FullName"]= "vwpromotions.surname";
-
-
-
-
-
-
- $fdata["Index"]= 1;
- $fdata["EditParams"]="";
- $fdata["EditParams"].= " maxlength=30";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["surname"]=$fdata;
- // firstname
- $fdata = array();
- $fdata["strName"] = "firstname";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Firstname";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "firstname";
-
- $fdata["FullName"]= "vwpromotions.firstname";
-
-
-
-
-
-
- $fdata["Index"]= 2;
- $fdata["EditParams"]="";
- $fdata["EditParams"].= " maxlength=30";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["firstname"]=$fdata;
- // othernames
- $fdata = array();
- $fdata["strName"] = "othernames";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Othernames";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "othernames";
-
- $fdata["FullName"]= "vwpromotions.othernames";
-
-
-
-
-
-
- $fdata["Index"]= 3;
- $fdata["EditParams"]="";
- $fdata["EditParams"].= " maxlength=30";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["othernames"]=$fdata;
- // description
- $fdata = array();
- $fdata["strName"] = "description";
- $fdata["ownerTable"] = "tblleavetype";
- $fdata["Label"]="Leave Type";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="description";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="description";
- $fdata["LookupTable"]="tblleavetype";
- $fdata["LookupOrderBy"]="description";
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "description";
-
- $fdata["FullName"]= "tblleavetype.description";
-
-
-
-
-
-
- $fdata["Index"]= 4;
-
- $fdata["bListPage"]=true;
-
-
- $fdata["bInlineAdd"]=true;
-
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["description"]=$fdata;
- // personnelno
- $fdata = array();
- $fdata["strName"] = "personnelno";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Personnel No.";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "personnelno";
-
- $fdata["FullName"]= "vwpromotions.personnelno";
-
-
-
-
-
-
- $fdata["Index"]= 5;
- $fdata["EditParams"]="";
- $fdata["EditParams"].= " maxlength=7";
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["personnelno"]=$fdata;
- // dept
- $fdata = array();
- $fdata["strName"] = "dept";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Department";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="name";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="name";
- $fdata["LookupTable"]="tbldepartment";
- $fdata["LookupOrderBy"]="name";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "dept";
-
- $fdata["FullName"]= "vwpromotions.dept";
-
-
-
-
-
-
- $fdata["Index"]= 6;
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["dept"]=$fdata;
- // status
- $fdata = array();
- $fdata["strName"] = "status";
- $fdata["ownerTable"] = "tblleaveapplication";
- $fdata["Label"]="Status";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="status";
- $fdata["LinkFieldType"]=129;
- $fdata["DisplayField"]="status";
- $fdata["LookupTable"]="tblleavestatus";
- $fdata["LookupOrderBy"]="status";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "status";
-
- $fdata["FullName"]= "tblleaveapplication.status";
-
-
-
-
-
-
- $fdata["Index"]= 7;
-
- $fdata["bListPage"]=true;
-
-
- $fdata["bInlineAdd"]=true;
-
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["status"]=$fdata;
- // leavecount
- $fdata = array();
- $fdata["strName"] = "leavecount";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Number of leaves";
-
-
-
- $fdata["FieldType"]= 3;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Text field";
- $fdata["ViewFormat"]= "";
-
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "leavecount";
-
- $fdata["FullName"]= "vwpromotions.employeeid";
-
-
-
-
-
-
- $fdata["Index"]= 8;
- $fdata["EditParams"]="";
-
- $fdata["bListPage"]=true;
-
-
- $fdata["bInlineAdd"]=true;
-
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
- $fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["leavecount"]=$fdata;
- // faculty
- $fdata = array();
- $fdata["strName"] = "faculty";
- $fdata["ownerTable"] = "vwpromotions";
- $fdata["Label"]="Faculty";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="fame";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="fame";
- $fdata["LookupTable"]="tblfaccentres";
- $fdata["LookupOrderBy"]="fame";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "faculty";
-
- $fdata["FullName"]= "vwpromotions.faculty";
-
-
-
-
-
-
- $fdata["Index"]= 9;
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["faculty"]=$fdata;
- // rank
- $fdata = array();
- $fdata["strName"] = "rank";
- $fdata["ownerTable"] = "tblrank";
- $fdata["Label"]="Rank";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="name";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]="name";
- $fdata["LookupTable"]="tblrank";
- $fdata["LookupOrderBy"]="name";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "rank";
-
- $fdata["FullName"]= "tblrank.name";
-
-
-
-
-
-
- $fdata["Index"]= 10;
-
- $fdata["bListPage"]=true;
-
- $fdata["bAddPage"]=true;
-
- $fdata["bInlineAdd"]=true;
-
- $fdata["bEditPage"]=true;
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["rank"]=$fdata;
- // cadre
- $fdata = array();
- $fdata["strName"] = "cadre";
- $fdata["ownerTable"] = "tblcadre";
- $fdata["Label"]="Cadre";
-
-
-
- $fdata["FieldType"]= 200;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]=" name";
- $fdata["LinkFieldType"]=200;
- $fdata["DisplayField"]=" name";
- $fdata["LookupTable"]="tblcadre";
- $fdata["LookupOrderBy"]=" name";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "cadre";
-
- $fdata["FullName"]= "tblcadre.` name`";
-
-
-
-
-
-
- $fdata["Index"]= 11;
-
- $fdata["bListPage"]=true;
-
-
- $fdata["bInlineAdd"]=true;
-
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["cadre"]=$fdata;
- // staffcategory
- $fdata = array();
- $fdata["strName"] = "staffcategory";
- $fdata["ownerTable"] = "tblstaffcategory";
- $fdata["Label"]="Staff Category";
-
-
-
- $fdata["FieldType"]= 129;
-
-
- $fdata["UseiBox"] = false;
-
- $fdata["EditFormat"]= "Lookup wizard";
- $fdata["ViewFormat"]= "";
-
-
- $fdata["LookupType"]=1;
- $fdata["pLookupType"] = 1;
- $fdata["freeInput"] = 0;
- $fdata["autoCompleteFieldsOnEdit"] = 0;
- $fdata["autoCompleteFields"] = array();
-
- $fdata["LinkField"]="name";
- $fdata["LinkFieldType"]=129;
- $fdata["DisplayField"]="name";
- $fdata["LookupTable"]="tblstaffcategory";
- $fdata["LookupOrderBy"]="name";
- $fdata["SimpleAdd"]=true;
-
-
-
-
- $fdata["NeedEncode"]=true;
-
- $fdata["GoodName"]= "staffcategory";
-
- $fdata["FullName"]= "tblstaffcategory.name";
-
-
-
-
-
-
- $fdata["Index"]= 12;
-
- $fdata["bListPage"]=true;
-
-
- $fdata["bInlineAdd"]=true;
-
-
- $fdata["bInlineEdit"]=true;
-
- $fdata["bViewPage"]=true;
-
- $fdata["bAdvancedSearch"]=true;
-
- $fdata["bPrinterPage"]=true;
-
- $fdata["bExportPage"]=true;
-
- //Begin validation
- $fdata["validateAs"] = array();
-
- //End validation
-
- $fdata["FieldPermissions"]=true;
-
-
-
-
-
-
- $tdataleave_summaryreport["staffcategory"]=$fdata;
-
-
-
- $tables_data["leave_summaryreport"]=&$tdataleave_summaryreport;
- $field_labels["leave_summaryreport"] = &$fieldLabelsleave_summaryreport;
- $fieldToolTips["leave_summaryreport"] = &$fieldToolTipsleave_summaryreport;
-
- // -----------------start prepare master-details data arrays ------------------------------//
- // tables which are detail tables for current table (master)
- $detailsTablesData["leave_summaryreport"] = array();
-
-
- // tables which are master tables for current table (detail)
- $masterTablesData["leave_summaryreport"] = array();
-
- // -----------------end prepare master-details data arrays ------------------------------//
-
- require_once(getabspath("classes/sql.php"));
-
-
-
-
-
-
-
-
-
-
- function createSqlQuery_leave_summaryreport()
- {
- $proto0=array();
- $proto0["m_strHead"] = "Select";
- $proto0["m_strFieldList"] = "vwpromotions.surname, vwpromotions.firstname, vwpromotions.othernames, tblleavetype.description, vwpromotions.personnelno, vwpromotions.dept, tblleaveapplication.status, vwpromotions.employeeid AS leavecount, vwpromotions.faculty, tblrank.name AS rank, tblcadre.` name` AS cadre, tblstaffcategory.name AS staffcategory";
- $proto0["m_strFrom"] = "FROM vwpromotions INNER JOIN tblleaveapplication ON vwpromotions.employeeid = tblleaveapplication.employeeid INNER JOIN tblleaveplan ON tblleaveapplication.planid = tblleaveplan.planid INNER JOIN tblleavetype ON tblleaveplan.leavetypeid = tblleavetype.leavetypeid INNER JOIN tblrank ON vwpromotions.rank = tblrank.rankid INNER JOIN tblcadre ON tblrank.cadreid = tblcadre.cadreid INNER JOIN tblstaffcategory ON tblcadre.categoryid = tblstaffcategory.categoryid";
- $proto0["m_strWhere"] = "";
- $proto0["m_strOrderBy"] = "";
- $proto0["m_strTail"] = "GROUP BY vwpromotions.personnelno, vwpromotions.employeeid";
- $proto1=array();
- $proto1["m_sql"] = "";
- $proto1["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLNonParsed(array(
- "m_sql" => ""
- ));
-
- $proto1["m_column"]=$obj;
- $proto1["m_contained"] = array();
- $proto1["m_strCase"] = "";
- $proto1["m_havingmode"] = "0";
- $proto1["m_inBrackets"] = "0";
- $proto1["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto1);
-
- $proto0["m_where"] = $obj;
- $proto3=array();
- $proto3["m_sql"] = "";
- $proto3["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLNonParsed(array(
- "m_sql" => ""
- ));
-
- $proto3["m_column"]=$obj;
- $proto3["m_contained"] = array();
- $proto3["m_strCase"] = "";
- $proto3["m_havingmode"] = "0";
- $proto3["m_inBrackets"] = "0";
- $proto3["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto3);
-
- $proto0["m_having"] = $obj;
- $proto0["m_fieldlist"] = array();
- $proto5=array();
- $obj = new SQLField(array(
- "m_strName" => "surname",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto5["m_expr"]=$obj;
- $proto5["m_alias"] = "";
- $obj = new SQLFieldListItem($proto5);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto7=array();
- $obj = new SQLField(array(
- "m_strName" => "firstname",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto7["m_expr"]=$obj;
- $proto7["m_alias"] = "";
- $obj = new SQLFieldListItem($proto7);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto9=array();
- $obj = new SQLField(array(
- "m_strName" => "othernames",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto9["m_expr"]=$obj;
- $proto9["m_alias"] = "";
- $obj = new SQLFieldListItem($proto9);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto11=array();
- $obj = new SQLField(array(
- "m_strName" => "description",
- "m_strTable" => "tblleavetype"
- ));
-
- $proto11["m_expr"]=$obj;
- $proto11["m_alias"] = "";
- $obj = new SQLFieldListItem($proto11);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto13=array();
- $obj = new SQLField(array(
- "m_strName" => "personnelno",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto13["m_expr"]=$obj;
- $proto13["m_alias"] = "";
- $obj = new SQLFieldListItem($proto13);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto15=array();
- $obj = new SQLField(array(
- "m_strName" => "dept",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto15["m_expr"]=$obj;
- $proto15["m_alias"] = "";
- $obj = new SQLFieldListItem($proto15);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto17=array();
- $obj = new SQLField(array(
- "m_strName" => "status",
- "m_strTable" => "tblleaveapplication"
- ));
-
- $proto17["m_expr"]=$obj;
- $proto17["m_alias"] = "";
- $obj = new SQLFieldListItem($proto17);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto19=array();
- $obj = new SQLField(array(
- "m_strName" => "employeeid",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto19["m_expr"]=$obj;
- $proto19["m_alias"] = "leavecount";
- $obj = new SQLFieldListItem($proto19);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto21=array();
- $obj = new SQLField(array(
- "m_strName" => "faculty",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto21["m_expr"]=$obj;
- $proto21["m_alias"] = "";
- $obj = new SQLFieldListItem($proto21);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto23=array();
- $obj = new SQLField(array(
- "m_strName" => "name",
- "m_strTable" => "tblrank"
- ));
-
- $proto23["m_expr"]=$obj;
- $proto23["m_alias"] = "rank";
- $obj = new SQLFieldListItem($proto23);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto25=array();
- $obj = new SQLField(array(
- "m_strName" => " name",
- "m_strTable" => "tblcadre"
- ));
-
- $proto25["m_expr"]=$obj;
- $proto25["m_alias"] = "cadre";
- $obj = new SQLFieldListItem($proto25);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto27=array();
- $obj = new SQLField(array(
- "m_strName" => "name",
- "m_strTable" => "tblstaffcategory"
- ));
-
- $proto27["m_expr"]=$obj;
- $proto27["m_alias"] = "staffcategory";
- $obj = new SQLFieldListItem($proto27);
-
- $proto0["m_fieldlist"][]=$obj;
- $proto0["m_fromlist"] = array();
- $proto29=array();
- $proto29["m_link"] = "SQLL_MAIN";
- $proto30=array();
- $proto30["m_strName"] = "vwpromotions";
- $proto30["m_columns"] = array();
- $proto30["m_columns"][] = "employeeid";
- $proto30["m_columns"][] = "surname";
- $proto30["m_columns"][] = "firstname";
- $proto30["m_columns"][] = "othernames";
- $proto30["m_columns"][] = "personnelno";
- $proto30["m_columns"][] = "rank";
- $proto30["m_columns"][] = "dept";
- $proto30["m_columns"][] = "faculty";
- $proto30["m_columns"][] = "effectivedate";
- $obj = new SQLTable($proto30);
-
- $proto29["m_table"] = $obj;
- $proto29["m_alias"] = "";
- $proto31=array();
- $proto31["m_sql"] = "";
- $proto31["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLNonParsed(array(
- "m_sql" => ""
- ));
-
- $proto31["m_column"]=$obj;
- $proto31["m_contained"] = array();
- $proto31["m_strCase"] = "";
- $proto31["m_havingmode"] = "0";
- $proto31["m_inBrackets"] = "0";
- $proto31["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto31);
-
- $proto29["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto29);
-
- $proto0["m_fromlist"][]=$obj;
- $proto33=array();
- $proto33["m_link"] = "SQLL_INNERJOIN";
- $proto34=array();
- $proto34["m_strName"] = "tblleaveapplication";
- $proto34["m_columns"] = array();
- $proto34["m_columns"][] = "leaveid";
- $proto34["m_columns"][] = "employeeid";
- $proto34["m_columns"][] = "planid";
- $proto34["m_columns"][] = "fiscalyear";
- $proto34["m_columns"][] = "fromdate";
- $proto34["m_columns"][] = "todate";
- $proto34["m_columns"][] = "daystaken";
- $proto34["m_columns"][] = "remark";
- $proto34["m_columns"][] = "ifschedule";
- $proto34["m_columns"][] = "status";
- $obj = new SQLTable($proto34);
-
- $proto33["m_table"] = $obj;
- $proto33["m_alias"] = "";
- $proto35=array();
- $proto35["m_sql"] = "vwpromotions.employeeid = tblleaveapplication.employeeid";
- $proto35["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "employeeid",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto35["m_column"]=$obj;
- $proto35["m_contained"] = array();
- $proto35["m_strCase"] = "= tblleaveapplication.employeeid";
- $proto35["m_havingmode"] = "0";
- $proto35["m_inBrackets"] = "0";
- $proto35["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto35);
-
- $proto33["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto33);
-
- $proto0["m_fromlist"][]=$obj;
- $proto37=array();
- $proto37["m_link"] = "SQLL_INNERJOIN";
- $proto38=array();
- $proto38["m_strName"] = "tblleaveplan";
- $proto38["m_columns"] = array();
- $proto38["m_columns"][] = "planid";
- $proto38["m_columns"][] = "gender";
- $proto38["m_columns"][] = "stafflevel";
- $proto38["m_columns"][] = "stafftype";
- $proto38["m_columns"][] = "nationality";
- $proto38["m_columns"][] = "days";
- $proto38["m_columns"][] = "ifschedulable";
- $proto38["m_columns"][] = "accrualrate";
- $proto38["m_columns"][] = "leavetypeid";
- $obj = new SQLTable($proto38);
-
- $proto37["m_table"] = $obj;
- $proto37["m_alias"] = "";
- $proto39=array();
- $proto39["m_sql"] = "tblleaveapplication.planid = tblleaveplan.planid";
- $proto39["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "planid",
- "m_strTable" => "tblleaveapplication"
- ));
-
- $proto39["m_column"]=$obj;
- $proto39["m_contained"] = array();
- $proto39["m_strCase"] = "= tblleaveplan.planid";
- $proto39["m_havingmode"] = "0";
- $proto39["m_inBrackets"] = "0";
- $proto39["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto39);
-
- $proto37["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto37);
-
- $proto0["m_fromlist"][]=$obj;
- $proto41=array();
- $proto41["m_link"] = "SQLL_INNERJOIN";
- $proto42=array();
- $proto42["m_strName"] = "tblleavetype";
- $proto42["m_columns"] = array();
- $proto42["m_columns"][] = "leavetypeid";
- $proto42["m_columns"][] = "description";
- $obj = new SQLTable($proto42);
-
- $proto41["m_table"] = $obj;
- $proto41["m_alias"] = "";
- $proto43=array();
- $proto43["m_sql"] = "tblleaveplan.leavetypeid = tblleavetype.leavetypeid";
- $proto43["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "leavetypeid",
- "m_strTable" => "tblleaveplan"
- ));
-
- $proto43["m_column"]=$obj;
- $proto43["m_contained"] = array();
- $proto43["m_strCase"] = "= tblleavetype.leavetypeid";
- $proto43["m_havingmode"] = "0";
- $proto43["m_inBrackets"] = "0";
- $proto43["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto43);
-
- $proto41["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto41);
-
- $proto0["m_fromlist"][]=$obj;
- $proto45=array();
- $proto45["m_link"] = "SQLL_INNERJOIN";
- $proto46=array();
- $proto46["m_strName"] = "tblrank";
- $proto46["m_columns"] = array();
- $proto46["m_columns"][] = "rankid";
- $proto46["m_columns"][] = "cadreid";
- $proto46["m_columns"][] = "name";
- $proto46["m_columns"][] = "grade";
- $obj = new SQLTable($proto46);
-
- $proto45["m_table"] = $obj;
- $proto45["m_alias"] = "";
- $proto47=array();
- $proto47["m_sql"] = "vwpromotions.rank = tblrank.rankid";
- $proto47["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "rank",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto47["m_column"]=$obj;
- $proto47["m_contained"] = array();
- $proto47["m_strCase"] = "= tblrank.rankid";
- $proto47["m_havingmode"] = "0";
- $proto47["m_inBrackets"] = "0";
- $proto47["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto47);
-
- $proto45["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto45);
-
- $proto0["m_fromlist"][]=$obj;
- $proto49=array();
- $proto49["m_link"] = "SQLL_INNERJOIN";
- $proto50=array();
- $proto50["m_strName"] = "tblcadre";
- $proto50["m_columns"] = array();
- $proto50["m_columns"][] = "cadreid";
- $proto50["m_columns"][] = " name";
- $proto50["m_columns"][] = "categoryid";
- $obj = new SQLTable($proto50);
-
- $proto49["m_table"] = $obj;
- $proto49["m_alias"] = "";
- $proto51=array();
- $proto51["m_sql"] = "tblrank.cadreid = tblcadre.cadreid";
- $proto51["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "cadreid",
- "m_strTable" => "tblrank"
- ));
-
- $proto51["m_column"]=$obj;
- $proto51["m_contained"] = array();
- $proto51["m_strCase"] = "= tblcadre.cadreid";
- $proto51["m_havingmode"] = "0";
- $proto51["m_inBrackets"] = "0";
- $proto51["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto51);
-
- $proto49["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto49);
-
- $proto0["m_fromlist"][]=$obj;
- $proto53=array();
- $proto53["m_link"] = "SQLL_INNERJOIN";
- $proto54=array();
- $proto54["m_strName"] = "tblstaffcategory";
- $proto54["m_columns"] = array();
- $proto54["m_columns"][] = "categoryid";
- $proto54["m_columns"][] = "name";
- $obj = new SQLTable($proto54);
-
- $proto53["m_table"] = $obj;
- $proto53["m_alias"] = "";
- $proto55=array();
- $proto55["m_sql"] = "tblcadre.categoryid = tblstaffcategory.categoryid";
- $proto55["m_uniontype"] = "SQLL_UNKNOWN";
- $obj = new SQLField(array(
- "m_strName" => "categoryid",
- "m_strTable" => "tblcadre"
- ));
-
- $proto55["m_column"]=$obj;
- $proto55["m_contained"] = array();
- $proto55["m_strCase"] = "= tblstaffcategory.categoryid";
- $proto55["m_havingmode"] = "0";
- $proto55["m_inBrackets"] = "0";
- $proto55["m_useAlias"] = "0";
- $obj = new SQLLogicalExpr($proto55);
-
- $proto53["m_joinon"] = $obj;
- $obj = new SQLFromListItem($proto53);
-
- $proto0["m_fromlist"][]=$obj;
- $proto0["m_groupby"] = array();
- $proto57=array();
- $obj = new SQLField(array(
- "m_strName" => "personnelno",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto57["m_column"]=$obj;
- $obj = new SQLGroupByItem($proto57);
-
- $proto0["m_groupby"][]=$obj;
- $proto59=array();
- $obj = new SQLField(array(
- "m_strName" => "employeeid",
- "m_strTable" => "vwpromotions"
- ));
-
- $proto59["m_column"]=$obj;
- $obj = new SQLGroupByItem($proto59);
-
- $proto0["m_groupby"][]=$obj;
- $proto0["m_orderby"] = array();
- $obj = new SQLQuery($proto0);
-
- return $obj;
- }
- $queryData_leave_summaryreport = createSqlQuery_leave_summaryreport();
- $tdataleave_summaryreport[".sqlquery"] = $queryData_leave_summaryreport;
-
-
-
- $tableEvents["leave_summaryreport"] = new eventsBase;
- $tdataleave_summaryreport[".hasEvents"] = false;
-
- ?>