/* This file is part of iCE Hrm. iCE Hrm is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. iCE Hrm is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with iCE Hrm. If not, see . ------------------------------------------------------------------ Original work Copyright (c) 2012 [Gamonoid Media Pvt. Ltd] Developer: Thilina Hasantha (thilina.hasantha[at]gmail.com / facebook.com/thilinah) */ function EmployeeAdapter(endPoint) { this.initAdapter(endPoint); this.fieldNameMap = {}; this.hiddenFields = {}; this.tableFields = {}; this.formOnlyFields = {}; this.customFields = []; } EmployeeAdapter.inherits(AdapterBase); this.currentUserId = null; EmployeeAdapter.method('setFieldNameMap', function(fields) { var field; for(var i=0;i"; obj.parent = null; break; } parentIdArr[parent.id] = 1; curObj = parent; } } if(errorMsg != ""){ this.showMessage("Company Structure is having a cyclic dependency","We found a cyclic dependency due to following reasons:
"+errorMsg); return false; } return true; });