public EmployeeService() { var url = SPContext.Current.Web.Url; _employeeInfoDAL = new EmployeeInfoDAL(url); _departmentDAL = new DepartmentDAL(url); _overtimeManagementDAL = new OverTimeManagementDAL(url); _overtimeManagementDetailDAL = new OverTimeManagementDetailDAL(url); _employeePositionDAL = new EmployeePositionDAL(url); }
private void InitObjects() { this.employeeInfoDAL = new EmployeeInfoDAL(this.SiteUrl); this.InitCurrentEmployeeInfoObject(); this.employeePositionDAL = new EmployeePositionDAL(this.SiteUrl); this.delegationModulesDAL = new DelegationModulesDAL(this.SiteUrl); this.delegationEmployeePositionsDAL = new DelegationEmployeePositionsDAL(this.SiteUrl); this.delegationsOfNewTaskDAL = new DelegationsOfNewTaskDAL(this.SiteUrl); this.delegationsDAL = new DelegationsDAL(this.SiteUrl); this.departmentDAL = new DepartmentDAL(this.SiteUrl); }
protected override void OnInit(EventArgs e) { try { base.OnInit(e); this.isEditable = this.IsEditable(); this.hdIsEditable.Value = this.isEditable.ToString(); this.employeePositionDAL = new EmployeePositionDAL(this.SiteUrl); this.employeeInfoDAL = new EmployeeInfoDAL(this.SiteUrl); this.requestDiplomaDetailDAL = new RequestDiplomaDetailDAL(this.SiteUrl); this.currentStepLookupValue = ObjectHelper.GetSPFieldLookupValue(this.CurrentItem[ApprovalFields.CurrentStep]); } catch (Exception ex) { ULSLogging.LogError(ex); this.ShowClientMessage(ex.Message); } }